@f-ewald/components 1.32.0 → 1.33.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 +1 -0
- package/custom-elements.json +97 -1
- package/dist/chevron-panel.d.ts +26 -0
- package/dist/chevron-panel.d.ts.map +1 -0
- package/dist/chevron-panel.js +132 -0
- package/dist/chevron-panel.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/radio-cards.d.ts +13 -9
- package/dist/radio-cards.d.ts.map +1 -1
- package/dist/radio-cards.js +22 -10
- package/dist/radio-cards.js.map +1 -1
- package/docs/chevron-panel.md +56 -0
- package/docs/radio-cards.md +17 -9
- package/llms.txt +41 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,6 +60,7 @@ import "@f-ewald/components/roman-numeral.js";
|
|
|
60
60
|
| `<calendar-year>` | [API reference](https://f-ewald.github.io/components/docs/calendar-year.html) |
|
|
61
61
|
| `<card-grid>` | [API reference](https://f-ewald.github.io/components/docs/card-grid.html) |
|
|
62
62
|
| `<chat-message>` | [API reference](https://f-ewald.github.io/components/docs/chat-message.html) |
|
|
63
|
+
| `<chevron-panel>` | [API reference](https://f-ewald.github.io/components/docs/chevron-panel.html) |
|
|
63
64
|
| `<comment-composer>` | [API reference](https://f-ewald.github.io/components/docs/comment-composer.html) |
|
|
64
65
|
| `<confirm-dialog>` | [API reference](https://f-ewald.github.io/components/docs/confirm-dialog.html) |
|
|
65
66
|
| `<content-divider>` | [API reference](https://f-ewald.github.io/components/docs/content-divider.html) |
|
package/custom-elements.json
CHANGED
|
@@ -4450,6 +4450,94 @@
|
|
|
4450
4450
|
}
|
|
4451
4451
|
]
|
|
4452
4452
|
},
|
|
4453
|
+
{
|
|
4454
|
+
"kind": "javascript-module",
|
|
4455
|
+
"path": "src/chevron-panel.ts",
|
|
4456
|
+
"declarations": [
|
|
4457
|
+
{
|
|
4458
|
+
"kind": "class",
|
|
4459
|
+
"description": "A generic disclosure: a clickable header that expands/collapses a body,\nwith a chevron that rotates to reflect state. Headline and body are both\nslotted, so any markup can go in either — unlike `chat-message`'s\nbuilt-in collapsible mode, which only slots the body and builds its\nheader from discrete properties (author/timestamp/summary).",
|
|
4460
|
+
"name": "ChevronPanel",
|
|
4461
|
+
"slots": [
|
|
4462
|
+
{
|
|
4463
|
+
"description": "Header content, always visible, clickable to toggle.",
|
|
4464
|
+
"name": "headline"
|
|
4465
|
+
},
|
|
4466
|
+
{
|
|
4467
|
+
"description": "Body content, shown only while `open`.",
|
|
4468
|
+
"name": ""
|
|
4469
|
+
}
|
|
4470
|
+
],
|
|
4471
|
+
"members": [
|
|
4472
|
+
{
|
|
4473
|
+
"kind": "field",
|
|
4474
|
+
"name": "open",
|
|
4475
|
+
"type": {
|
|
4476
|
+
"text": "boolean"
|
|
4477
|
+
},
|
|
4478
|
+
"default": "false",
|
|
4479
|
+
"description": "Whether the body is currently expanded.",
|
|
4480
|
+
"attribute": "open",
|
|
4481
|
+
"reflects": true
|
|
4482
|
+
},
|
|
4483
|
+
{
|
|
4484
|
+
"kind": "method",
|
|
4485
|
+
"name": "#toggle",
|
|
4486
|
+
"privacy": "private",
|
|
4487
|
+
"return": {
|
|
4488
|
+
"type": {
|
|
4489
|
+
"text": "void"
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4492
|
+
}
|
|
4493
|
+
],
|
|
4494
|
+
"events": [
|
|
4495
|
+
{
|
|
4496
|
+
"name": "toggle",
|
|
4497
|
+
"type": {
|
|
4498
|
+
"text": "CustomEvent"
|
|
4499
|
+
},
|
|
4500
|
+
"description": "Fired with `{ open: boolean }` when the header is clicked."
|
|
4501
|
+
}
|
|
4502
|
+
],
|
|
4503
|
+
"attributes": [
|
|
4504
|
+
{
|
|
4505
|
+
"name": "open",
|
|
4506
|
+
"type": {
|
|
4507
|
+
"text": "boolean"
|
|
4508
|
+
},
|
|
4509
|
+
"default": "false",
|
|
4510
|
+
"description": "Whether the body is currently expanded.",
|
|
4511
|
+
"fieldName": "open"
|
|
4512
|
+
}
|
|
4513
|
+
],
|
|
4514
|
+
"superclass": {
|
|
4515
|
+
"name": "LitElement",
|
|
4516
|
+
"package": "lit"
|
|
4517
|
+
},
|
|
4518
|
+
"tagName": "chevron-panel",
|
|
4519
|
+
"customElement": true
|
|
4520
|
+
}
|
|
4521
|
+
],
|
|
4522
|
+
"exports": [
|
|
4523
|
+
{
|
|
4524
|
+
"kind": "js",
|
|
4525
|
+
"name": "ChevronPanel",
|
|
4526
|
+
"declaration": {
|
|
4527
|
+
"name": "ChevronPanel",
|
|
4528
|
+
"module": "src/chevron-panel.ts"
|
|
4529
|
+
}
|
|
4530
|
+
},
|
|
4531
|
+
{
|
|
4532
|
+
"kind": "custom-element-definition",
|
|
4533
|
+
"name": "chevron-panel",
|
|
4534
|
+
"declaration": {
|
|
4535
|
+
"name": "ChevronPanel",
|
|
4536
|
+
"module": "src/chevron-panel.ts"
|
|
4537
|
+
}
|
|
4538
|
+
}
|
|
4539
|
+
]
|
|
4540
|
+
},
|
|
4453
4541
|
{
|
|
4454
4542
|
"kind": "javascript-module",
|
|
4455
4543
|
"path": "src/comment-composer.ts",
|
|
@@ -10202,6 +10290,14 @@
|
|
|
10202
10290
|
"module": "./chat-message.js"
|
|
10203
10291
|
}
|
|
10204
10292
|
},
|
|
10293
|
+
{
|
|
10294
|
+
"kind": "js",
|
|
10295
|
+
"name": "ChevronPanel",
|
|
10296
|
+
"declaration": {
|
|
10297
|
+
"name": "ChevronPanel",
|
|
10298
|
+
"module": "./chevron-panel.js"
|
|
10299
|
+
}
|
|
10300
|
+
},
|
|
10205
10301
|
{
|
|
10206
10302
|
"kind": "js",
|
|
10207
10303
|
"name": "UiCheckbox",
|
|
@@ -15978,7 +16074,7 @@
|
|
|
15978
16074
|
"declarations": [
|
|
15979
16075
|
{
|
|
15980
16076
|
"kind": "class",
|
|
15981
|
-
"description": "Single-select group of full-width cards, each with a label and optional\ndescription — for a handful of meaningfully different choices where the\ndescription matters. For many short, same-shaped options (a color swatch,\na basemap style), use `radio-pills` instead. Wraps native radio inputs for\nkeyboard/a11y and fires `change` rather than relying on form submission.\n\
|
|
16077
|
+
"description": "Single-select group of full-width cards, each with a label and optional\ndescription — for a handful of meaningfully different choices where the\ndescription matters. For many short, same-shaped options (a color swatch,\na basemap style), use `radio-pills` instead. Wraps native radio inputs for\nkeyboard/a11y and fires `change` rather than relying on form submission.\n\nAn unchecked card is treated as `ui-button`'s secondary variant: it reads\nthe same `--ui-button-secondary-background`/`-hover` and\n`-border`/`-hover` tokens, so a gradient theme applies to a card exactly\nlike it does to any button. The selected card's border/radio dot instead\nread `--ui-button-accent` (a solid stand-in, since `border-color`/\n`accent-color` can't render a gradient), and its background reads the\nshared `--ui-button-secondary-surface-muted` plus `--ui-button-highlight`,\nso a gradient theme tints it consistently with `button-group`/\n`pagination-nav`'s equivalents. That shared value is tuned for small\ncontrols, so a card — with far more area — blends it 45% toward\n`--ui-surface` rather than taking a second token: the tint stays the same\nhue and gradient, just lighter on light themes (and correspondingly\ndeeper on dark ones) than on a button.\n\n`layout` controls how cards flow (\"mixed\" wraps with per-option\n`fullWidth` rows, \"vertical\" stacks one per row, \"horizontal\" stays\nside-by-side at every width). `hideInput` visually hides the radio dot via\nthe same `sr-only` clip pattern as `ui-checkbox` — the native input stays\nin the DOM for keyboard/a11y, and the card's own border/tint carries the\nselected state instead.",
|
|
15982
16078
|
"name": "RadioCards",
|
|
15983
16079
|
"members": [
|
|
15984
16080
|
{
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* A generic disclosure: a clickable header that expands/collapses a body,
|
|
4
|
+
* with a chevron that rotates to reflect state. Headline and body are both
|
|
5
|
+
* slotted, so any markup can go in either — unlike `chat-message`'s
|
|
6
|
+
* built-in collapsible mode, which only slots the body and builds its
|
|
7
|
+
* header from discrete properties (author/timestamp/summary).
|
|
8
|
+
*
|
|
9
|
+
* @element chevron-panel
|
|
10
|
+
* @slot headline - Header content, always visible, clickable to toggle.
|
|
11
|
+
* @slot - Body content, shown only while `open`.
|
|
12
|
+
* @fires toggle - Fired with `{ open: boolean }` when the header is clicked.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ChevronPanel extends LitElement {
|
|
15
|
+
#private;
|
|
16
|
+
/** Whether the body is currently expanded. */
|
|
17
|
+
open: boolean;
|
|
18
|
+
static styles: import("lit").CSSResult[];
|
|
19
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
"chevron-panel": ChevronPanel;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=chevron-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chevron-panel.d.ts","sourceRoot":"","sources":["../src/chevron-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAK5C;;;;;;;;;;;GAWG;AACH,qBACa,YAAa,SAAQ,UAAU;;IAC1C,8CAA8C;IACF,IAAI,UAAS;IAEzD,OAAgB,MAAM,4BAyEpB;IAOO,MAAM,yCAgBd;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, css, html } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { iconChevronRight } from "./icons.js";
|
|
10
|
+
import { tokens } from "./tokens.js";
|
|
11
|
+
/**
|
|
12
|
+
* A generic disclosure: a clickable header that expands/collapses a body,
|
|
13
|
+
* with a chevron that rotates to reflect state. Headline and body are both
|
|
14
|
+
* slotted, so any markup can go in either — unlike `chat-message`'s
|
|
15
|
+
* built-in collapsible mode, which only slots the body and builds its
|
|
16
|
+
* header from discrete properties (author/timestamp/summary).
|
|
17
|
+
*
|
|
18
|
+
* @element chevron-panel
|
|
19
|
+
* @slot headline - Header content, always visible, clickable to toggle.
|
|
20
|
+
* @slot - Body content, shown only while `open`.
|
|
21
|
+
* @fires toggle - Fired with `{ open: boolean }` when the header is clicked.
|
|
22
|
+
*/
|
|
23
|
+
let ChevronPanel = class ChevronPanel extends LitElement {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
/** Whether the body is currently expanded. */
|
|
27
|
+
this.open = false;
|
|
28
|
+
}
|
|
29
|
+
static { this.styles = [
|
|
30
|
+
tokens,
|
|
31
|
+
css `
|
|
32
|
+
:host {
|
|
33
|
+
display: block;
|
|
34
|
+
font-family: var(
|
|
35
|
+
--ui-font,
|
|
36
|
+
ui-sans-serif,
|
|
37
|
+
system-ui,
|
|
38
|
+
sans-serif,
|
|
39
|
+
"Apple Color Emoji",
|
|
40
|
+
"Segoe UI Emoji",
|
|
41
|
+
"Segoe UI Symbol",
|
|
42
|
+
"Noto Color Emoji"
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
button.header {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: 0.5rem;
|
|
49
|
+
width: 100%;
|
|
50
|
+
min-height: 2rem;
|
|
51
|
+
padding: 0;
|
|
52
|
+
border: 0;
|
|
53
|
+
background: none;
|
|
54
|
+
font-family: var(
|
|
55
|
+
--ui-font,
|
|
56
|
+
ui-sans-serif,
|
|
57
|
+
system-ui,
|
|
58
|
+
sans-serif,
|
|
59
|
+
"Apple Color Emoji",
|
|
60
|
+
"Segoe UI Emoji",
|
|
61
|
+
"Segoe UI Symbol",
|
|
62
|
+
"Noto Color Emoji"
|
|
63
|
+
);
|
|
64
|
+
color: var(--ui-text, #0f172a);
|
|
65
|
+
text-align: left;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
button.header:focus-visible {
|
|
69
|
+
outline: none;
|
|
70
|
+
border-radius: var(--ui-radius-sm, 0.25rem);
|
|
71
|
+
box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35));
|
|
72
|
+
}
|
|
73
|
+
.headline {
|
|
74
|
+
flex: 1 1 auto;
|
|
75
|
+
min-width: 0;
|
|
76
|
+
}
|
|
77
|
+
.chevron {
|
|
78
|
+
display: inline-flex;
|
|
79
|
+
flex: 0 0 auto;
|
|
80
|
+
color: var(--ui-text-muted, #64748b);
|
|
81
|
+
transition: transform 150ms ease;
|
|
82
|
+
}
|
|
83
|
+
:host([open]) .chevron {
|
|
84
|
+
transform: rotate(90deg);
|
|
85
|
+
}
|
|
86
|
+
.body[hidden] {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
@media (prefers-reduced-motion: reduce) {
|
|
90
|
+
.chevron {
|
|
91
|
+
transition: none;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
@media (forced-colors: active) {
|
|
95
|
+
button.header:focus-visible {
|
|
96
|
+
outline: 2px solid CanvasText;
|
|
97
|
+
outline-offset: 2px;
|
|
98
|
+
box-shadow: none;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`,
|
|
102
|
+
]; }
|
|
103
|
+
#toggle() {
|
|
104
|
+
this.open = !this.open;
|
|
105
|
+
this.dispatchEvent(new CustomEvent("toggle", { detail: { open: this.open } }));
|
|
106
|
+
}
|
|
107
|
+
render() {
|
|
108
|
+
return html `
|
|
109
|
+
<button
|
|
110
|
+
class="header"
|
|
111
|
+
type="button"
|
|
112
|
+
aria-expanded=${String(this.open)}
|
|
113
|
+
aria-controls="panel-body"
|
|
114
|
+
@click=${() => this.#toggle()}
|
|
115
|
+
>
|
|
116
|
+
<span class="chevron" aria-hidden="true">${iconChevronRight(14)}</span>
|
|
117
|
+
<span class="headline"><slot name="headline"></slot></span>
|
|
118
|
+
</button>
|
|
119
|
+
<div id="panel-body" class="body" ?hidden=${!this.open}>
|
|
120
|
+
<slot></slot>
|
|
121
|
+
</div>
|
|
122
|
+
`;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
__decorate([
|
|
126
|
+
property({ type: Boolean, reflect: true })
|
|
127
|
+
], ChevronPanel.prototype, "open", void 0);
|
|
128
|
+
ChevronPanel = __decorate([
|
|
129
|
+
customElement("chevron-panel")
|
|
130
|
+
], ChevronPanel);
|
|
131
|
+
export { ChevronPanel };
|
|
132
|
+
//# sourceMappingURL=chevron-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chevron-panel.js","sourceRoot":"","sources":["../src/chevron-panel.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC;;;;;;;;;;;GAWG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QACL,8CAA8C;QACF,SAAI,GAAG,KAAK,CAAC;IAmG3D,CAAC;aAjGiB,WAAM,GAAG;QACvB,MAAM;QACN,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsEF;KACF,AAzEqB,CAyEpB;IAEF,OAAO;QACL,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACjF,CAAC;IAEQ,MAAM;QACb,OAAO,IAAI,CAAA;;;;wBAIS,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;iBAExB,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;;mDAEc,gBAAgB,CAAC,EAAE,CAAC;;;kDAGrB,CAAC,IAAI,CAAC,IAAI;;;KAGvD,CAAC;IACJ,CAAC;CACF,CAAA;AAnG6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAAc;AAF9C,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAqGxB","sourcesContent":["import { LitElement, css, html } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport { iconChevronRight } from \"./icons.js\";\nimport { tokens } from \"./tokens.js\";\n\n/**\n * A generic disclosure: a clickable header that expands/collapses a body,\n * with a chevron that rotates to reflect state. Headline and body are both\n * slotted, so any markup can go in either — unlike `chat-message`'s\n * built-in collapsible mode, which only slots the body and builds its\n * header from discrete properties (author/timestamp/summary).\n *\n * @element chevron-panel\n * @slot headline - Header content, always visible, clickable to toggle.\n * @slot - Body content, shown only while `open`.\n * @fires toggle - Fired with `{ open: boolean }` when the header is clicked.\n */\n@customElement(\"chevron-panel\")\nexport class ChevronPanel extends LitElement {\n /** Whether the body is currently expanded. */\n @property({ type: Boolean, reflect: true }) open = false;\n\n static override styles = [\n tokens,\n css`\n :host {\n display: block;\n font-family: var(\n --ui-font,\n ui-sans-serif,\n system-ui,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\",\n \"Noto Color Emoji\"\n );\n }\n button.header {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n width: 100%;\n min-height: 2rem;\n padding: 0;\n border: 0;\n background: none;\n font-family: var(\n --ui-font,\n ui-sans-serif,\n system-ui,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\",\n \"Noto Color Emoji\"\n );\n color: var(--ui-text, #0f172a);\n text-align: left;\n cursor: pointer;\n }\n button.header:focus-visible {\n outline: none;\n border-radius: var(--ui-radius-sm, 0.25rem);\n box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35));\n }\n .headline {\n flex: 1 1 auto;\n min-width: 0;\n }\n .chevron {\n display: inline-flex;\n flex: 0 0 auto;\n color: var(--ui-text-muted, #64748b);\n transition: transform 150ms ease;\n }\n :host([open]) .chevron {\n transform: rotate(90deg);\n }\n .body[hidden] {\n display: none;\n }\n @media (prefers-reduced-motion: reduce) {\n .chevron {\n transition: none;\n }\n }\n @media (forced-colors: active) {\n button.header:focus-visible {\n outline: 2px solid CanvasText;\n outline-offset: 2px;\n box-shadow: none;\n }\n }\n `,\n ];\n\n #toggle(): void {\n this.open = !this.open;\n this.dispatchEvent(new CustomEvent(\"toggle\", { detail: { open: this.open } }));\n }\n\n override render() {\n return html`\n <button\n class=\"header\"\n type=\"button\"\n aria-expanded=${String(this.open)}\n aria-controls=\"panel-body\"\n @click=${() => this.#toggle()}\n >\n <span class=\"chevron\" aria-hidden=\"true\">${iconChevronRight(14)}</span>\n <span class=\"headline\"><slot name=\"headline\"></slot></span>\n </button>\n <div id=\"panel-body\" class=\"body\" ?hidden=${!this.open}>\n <slot></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"chevron-panel\": ChevronPanel;\n }\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export { LoadMore } from "./load-more.js";
|
|
|
43
43
|
export { LoadingSpinner } from "./loading-spinner.js";
|
|
44
44
|
export { LoadingDots } from "./loading-dots.js";
|
|
45
45
|
export { ChatMessage, type ChatMessageRole, type ChatMessageVariant, } from "./chat-message.js";
|
|
46
|
+
export { ChevronPanel } from "./chevron-panel.js";
|
|
46
47
|
export { UiCheckbox } from "./ui-checkbox.js";
|
|
47
48
|
export { FormField } from "./form-field.js";
|
|
48
49
|
export { FormSelect, type SelectOption } from "./form-select.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,YAAY,EACZ,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,GACnC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,UAAU,EACV,aAAa,EACb,KAAK,YAAY,GAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,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export { LoadMore } from "./load-more.js";
|
|
|
43
43
|
export { LoadingSpinner } from "./loading-spinner.js";
|
|
44
44
|
export { LoadingDots } from "./loading-dots.js";
|
|
45
45
|
export { ChatMessage, } from "./chat-message.js";
|
|
46
|
+
export { ChevronPanel } from "./chevron-panel.js";
|
|
46
47
|
export { UiCheckbox } from "./ui-checkbox.js";
|
|
47
48
|
export { FormField } from "./form-field.js";
|
|
48
49
|
export { FormSelect } from "./form-select.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,YAAY,GAIb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,UAAU,EACV,aAAa,GAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,UAAU,GAIX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAA+B,MAAM,wBAAwB,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc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AAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,WAAW,EACX,eAAe,EACf,UAAU,EACV,YAAY,EACZ,SAAS,GAMV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,cAAc,YAAY,CAAC","sourcesContent":["export { AnimateConfetti } from \"./animate-confetti.js\";\nexport { GalleryItem } from \"./gallery-item.js\";\nexport { GalleryItemVariant } from \"./gallery-item-variant.js\";\nexport {\n PhotoGallery,\n type PhotoGalleryChangeReason,\n type PhotoGalleryObjectFit,\n type PhotoGallerySlideChangeDetail,\n} from \"./photo-gallery.js\";\nexport { RevealButton } from \"./reveal-button.js\";\nexport { RomanNumeral } from \"./roman-numeral.js\";\nexport { ConfirmDialog } from \"./confirm-dialog.js\";\nexport { ModalDialog, type ModalDialogSize } from \"./modal-dialog.js\";\nexport { ContentDivider } from \"./content-divider.js\";\nexport {\n ToastNotification,\n notifySuccess,\n notifyError,\n notifyInfo,\n notifyWarning,\n type ToastVariant,\n} from \"./toast-notification.js\";\nexport { ScrollToBottom } from \"./scroll-to-bottom.js\";\nexport {\n ScrollDots,\n type DotSelectDetail,\n type ScrollDotItem,\n type ScrollDotsItem,\n} from \"./scroll-dots.js\";\nexport { ScrollToTop } from \"./scroll-to-top.js\";\nexport { FullscreenButton, type FullscreenChangeDetail } from \"./fullscreen-button.js\";\nexport { SlidePanel } from \"./slide-panel.js\";\nexport { CopyLinkButton } from \"./copy-link-button.js\";\nexport { RelativeTime } from \"./relative-time.js\";\nexport { DistanceValue } from \"./distance-value.js\";\nexport { PriceHistoryChart, type PricePoint } from \"./price-history-chart.js\";\nexport { DistributionChart, type DistributionValue } from \"./distribution-chart.js\";\nexport { PercentBarChart, type PercentBarGroup } from \"./percent-bar-chart.js\";\nexport { WeightBarChart, type WeightBarItem } from \"./weight-bar-chart.js\";\nexport {\n AddressAutocomplete,\n type AddressSuggestion,\n} from \"./address-autocomplete.js\";\nexport {\n AutocompleteInput,\n type AutocompleteOption,\n} from \"./autocomplete-input.js\";\nexport { UserAvatar } from \"./user-avatar.js\";\nexport { MapPin } from \"./map-pin.js\";\nexport { MapCircle } from \"./map-circle.js\";\nexport { MapboxMap } from \"./mapbox-map.js\";\nexport { RadioCards, type RadioCardOption } from \"./radio-cards.js\";\nexport { RadioPills, type RadioPillOption } from \"./radio-pills.js\";\nexport { RangeSlider } from \"./range-slider.js\";\nexport { ButtonGroup, type ButtonGroupOption } from \"./button-group.js\";\nexport { UiButton, type ButtonVariant } from \"./ui-button.js\";\nexport { StatMeter } from \"./stat-meter.js\";\nexport { ProgressBar } from \"./progress-bar.js\";\nexport { StatusBanner, type StatusBannerVariant } from \"./status-banner.js\";\nexport { UiAdmonition, type AdmonitionVariant } from \"./ui-admonition.js\";\nexport { StatusPill, type StatusPillColor } from \"./status-pill.js\";\nexport { EditableText } from \"./editable-text.js\";\nexport { LiveTimer } from \"./live-timer.js\";\nexport { CountdownTimer } from \"./countdown-timer.js\";\nexport { LoadMore } from \"./load-more.js\";\nexport { LoadingSpinner } from \"./loading-spinner.js\";\nexport { LoadingDots } from \"./loading-dots.js\";\nexport {\n ChatMessage,\n type ChatMessageRole,\n type ChatMessageVariant,\n} from \"./chat-message.js\";\nexport { UiCheckbox } from \"./ui-checkbox.js\";\nexport { FormField } from \"./form-field.js\";\nexport { FormSelect, type SelectOption } from \"./form-select.js\";\nexport {\n MultiSelect,\n type MultiSelectOption,\n type MultiSelectVariant,\n} from \"./multi-select.js\";\nexport { DataTable, type DataTableColumn } from \"./data-table.js\";\nexport { TileGrid } from \"./tile-grid.js\";\nexport { TreeView, type TreeNode } from \"./tree-view.js\";\nexport { PopoverPanel } from \"./popover-panel.js\";\nexport {\n DropdownButton,\n type DropdownButtonVariant,\n type DropdownOption,\n} from \"./dropdown-button.js\";\nexport { IconButton } from \"./icon-button.js\";\nexport { KbdHint, type KbdPlatform } from \"./kbd-hint.js\";\nexport { FrameBox } from \"./frame-box.js\";\nexport { AppShell, type SidebarToggleDetail } from \"./app-shell.js\";\nexport { AppSidebar } from \"./app-sidebar.js\";\nexport { ActionBar } from \"./action-bar.js\";\nexport { PageHeader } from \"./page-header.js\";\nexport { PaginationNav, type PageChangeDetail } from \"./pagination-nav.js\";\nexport { FormActions } from \"./form-actions.js\";\nexport { TimelineContainer, type TimelineLayout } from \"./timeline-container.js\";\nexport { TimelineEntry } from \"./timeline-entry.js\";\nexport { CalendarDay } from \"./calendar-day.js\";\nexport { CalendarEntry } from \"./calendar-entry.js\";\nexport { CalendarMonth } from \"./calendar-month.js\";\nexport { CalendarWeek } from \"./calendar-week.js\";\nexport { CalendarYear } from \"./calendar-year.js\";\nexport {\n KanbanBoard,\n type KanbanCardData,\n type KanbanColumnData,\n type KanbanCardMoveDetail,\n type KanbanCardOpenDetail,\n} from \"./kanban-board.js\";\nexport { KanbanColumn } from \"./kanban-column.js\";\nexport { KanbanCard } from \"./kanban-card.js\";\nexport { TextArea } from \"./text-area.js\";\nexport { LinkCard, type LinkCardStatus } from \"./link-card.js\";\nexport { CardGrid } from \"./card-grid.js\";\nexport { MarkdownView } from \"./markdown-view.js\";\nexport { AutoScroll } from \"./auto-scroll.js\";\nexport { SplitHero } from \"./split-hero.js\";\nexport { TabBar, type TabChangeDetail } from \"./tab-bar.js\";\nexport { TabItem } from \"./tab-item.js\";\nexport { MarkdownEditor } from \"./markdown-editor.js\";\nexport {\n parseFrontMatter,\n formatFrontMatterValue,\n type FrontMatterResult,\n} from \"./utils/front-matter.js\";\nexport {\n formatDuration,\n formatClockDuration,\n type DurationFormat,\n} from \"./utils/duration.js\";\nexport { AudioPlayer } from \"./audio-player.js\";\nexport { VideoPlayer } from \"./video-player.js\";\nexport { CommentComposer } from \"./comment-composer.js\";\nexport { CronSchedule } from \"./cron-schedule.js\";\nexport {\n CRON_ALIASES,\n CRON_FIELD_BOUNDS,\n CRON_FIELD_LABELS,\n CRON_FIELD_NAMES,\n MONTH_ABBREVIATIONS,\n MONTH_NAMES,\n WEEKDAY_ABBREVIATIONS,\n WEEKDAY_NAMES,\n describeCron,\n detectFrequency,\n expandField,\n fieldFromValues,\n formatCron,\n isEveryValue,\n parseCron,\n type CronExpression,\n type CronField,\n type CronFieldName,\n type CronFrequency,\n type CronTerm,\n} from \"./utils/cron.js\";\nexport { tokens, tokenValues, darkTokenValues } from \"./tokens.js\";\nexport * from \"./icons.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,YAAY,GAIb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,UAAU,EACV,aAAa,GAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EACL,UAAU,GAIX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OA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c,EACd,mBAAmB,GAEpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,WAAW,EACX,eAAe,EACf,UAAU,EACV,YAAY,EACZ,SAAS,GAMV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,cAAc,YAAY,CAAC","sourcesContent":["export { AnimateConfetti } from \"./animate-confetti.js\";\nexport { GalleryItem } from \"./gallery-item.js\";\nexport { GalleryItemVariant } from \"./gallery-item-variant.js\";\nexport {\n PhotoGallery,\n type PhotoGalleryChangeReason,\n type PhotoGalleryObjectFit,\n type PhotoGallerySlideChangeDetail,\n} from \"./photo-gallery.js\";\nexport { RevealButton } from \"./reveal-button.js\";\nexport { RomanNumeral } from \"./roman-numeral.js\";\nexport { ConfirmDialog } from \"./confirm-dialog.js\";\nexport { ModalDialog, type ModalDialogSize } from \"./modal-dialog.js\";\nexport { ContentDivider } from \"./content-divider.js\";\nexport {\n ToastNotification,\n notifySuccess,\n notifyError,\n notifyInfo,\n notifyWarning,\n type ToastVariant,\n} from \"./toast-notification.js\";\nexport { ScrollToBottom } from \"./scroll-to-bottom.js\";\nexport {\n ScrollDots,\n type DotSelectDetail,\n type ScrollDotItem,\n type ScrollDotsItem,\n} from \"./scroll-dots.js\";\nexport { ScrollToTop } from \"./scroll-to-top.js\";\nexport { FullscreenButton, type FullscreenChangeDetail } from \"./fullscreen-button.js\";\nexport { SlidePanel } from \"./slide-panel.js\";\nexport { CopyLinkButton } from \"./copy-link-button.js\";\nexport { RelativeTime } from \"./relative-time.js\";\nexport { DistanceValue } from \"./distance-value.js\";\nexport { PriceHistoryChart, type PricePoint } from \"./price-history-chart.js\";\nexport { DistributionChart, type DistributionValue } from \"./distribution-chart.js\";\nexport { PercentBarChart, type PercentBarGroup } from \"./percent-bar-chart.js\";\nexport { WeightBarChart, type WeightBarItem } from \"./weight-bar-chart.js\";\nexport {\n AddressAutocomplete,\n type AddressSuggestion,\n} from \"./address-autocomplete.js\";\nexport {\n AutocompleteInput,\n type AutocompleteOption,\n} from \"./autocomplete-input.js\";\nexport { UserAvatar } from \"./user-avatar.js\";\nexport { MapPin } from \"./map-pin.js\";\nexport { MapCircle } from \"./map-circle.js\";\nexport { MapboxMap } from \"./mapbox-map.js\";\nexport { RadioCards, type RadioCardOption } from \"./radio-cards.js\";\nexport { RadioPills, type RadioPillOption } from \"./radio-pills.js\";\nexport { RangeSlider } from \"./range-slider.js\";\nexport { ButtonGroup, type ButtonGroupOption } from \"./button-group.js\";\nexport { UiButton, type ButtonVariant } from \"./ui-button.js\";\nexport { StatMeter } from \"./stat-meter.js\";\nexport { ProgressBar } from \"./progress-bar.js\";\nexport { StatusBanner, type StatusBannerVariant } from \"./status-banner.js\";\nexport { UiAdmonition, type AdmonitionVariant } from \"./ui-admonition.js\";\nexport { StatusPill, type StatusPillColor } from \"./status-pill.js\";\nexport { EditableText } from \"./editable-text.js\";\nexport { LiveTimer } from \"./live-timer.js\";\nexport { CountdownTimer } from \"./countdown-timer.js\";\nexport { LoadMore } from \"./load-more.js\";\nexport { LoadingSpinner } from \"./loading-spinner.js\";\nexport { LoadingDots } from \"./loading-dots.js\";\nexport {\n ChatMessage,\n type ChatMessageRole,\n type ChatMessageVariant,\n} from \"./chat-message.js\";\nexport { ChevronPanel } from \"./chevron-panel.js\";\nexport { UiCheckbox } from \"./ui-checkbox.js\";\nexport { FormField } from \"./form-field.js\";\nexport { FormSelect, type SelectOption } from \"./form-select.js\";\nexport {\n MultiSelect,\n type MultiSelectOption,\n type MultiSelectVariant,\n} from \"./multi-select.js\";\nexport { DataTable, type DataTableColumn } from \"./data-table.js\";\nexport { TileGrid } from \"./tile-grid.js\";\nexport { TreeView, type TreeNode } from \"./tree-view.js\";\nexport { PopoverPanel } from \"./popover-panel.js\";\nexport {\n DropdownButton,\n type DropdownButtonVariant,\n type DropdownOption,\n} from \"./dropdown-button.js\";\nexport { IconButton } from \"./icon-button.js\";\nexport { KbdHint, type KbdPlatform } from \"./kbd-hint.js\";\nexport { FrameBox } from \"./frame-box.js\";\nexport { AppShell, type SidebarToggleDetail } from \"./app-shell.js\";\nexport { AppSidebar } from \"./app-sidebar.js\";\nexport { ActionBar } from \"./action-bar.js\";\nexport { PageHeader } from \"./page-header.js\";\nexport { PaginationNav, type PageChangeDetail } from \"./pagination-nav.js\";\nexport { FormActions } from \"./form-actions.js\";\nexport { TimelineContainer, type TimelineLayout } from \"./timeline-container.js\";\nexport { TimelineEntry } from \"./timeline-entry.js\";\nexport { CalendarDay } from \"./calendar-day.js\";\nexport { CalendarEntry } from \"./calendar-entry.js\";\nexport { CalendarMonth } from \"./calendar-month.js\";\nexport { CalendarWeek } from \"./calendar-week.js\";\nexport { CalendarYear } from \"./calendar-year.js\";\nexport {\n KanbanBoard,\n type KanbanCardData,\n type KanbanColumnData,\n type KanbanCardMoveDetail,\n type KanbanCardOpenDetail,\n} from \"./kanban-board.js\";\nexport { KanbanColumn } from \"./kanban-column.js\";\nexport { KanbanCard } from \"./kanban-card.js\";\nexport { TextArea } from \"./text-area.js\";\nexport { LinkCard, type LinkCardStatus } from \"./link-card.js\";\nexport { CardGrid } from \"./card-grid.js\";\nexport { MarkdownView } from \"./markdown-view.js\";\nexport { AutoScroll } from \"./auto-scroll.js\";\nexport { SplitHero } from \"./split-hero.js\";\nexport { TabBar, type TabChangeDetail } from \"./tab-bar.js\";\nexport { TabItem } from \"./tab-item.js\";\nexport { MarkdownEditor } from \"./markdown-editor.js\";\nexport {\n parseFrontMatter,\n formatFrontMatterValue,\n type FrontMatterResult,\n} from \"./utils/front-matter.js\";\nexport {\n formatDuration,\n formatClockDuration,\n type DurationFormat,\n} from \"./utils/duration.js\";\nexport { AudioPlayer } from \"./audio-player.js\";\nexport { VideoPlayer } from \"./video-player.js\";\nexport { CommentComposer } from \"./comment-composer.js\";\nexport { CronSchedule } from \"./cron-schedule.js\";\nexport {\n CRON_ALIASES,\n CRON_FIELD_BOUNDS,\n CRON_FIELD_LABELS,\n CRON_FIELD_NAMES,\n MONTH_ABBREVIATIONS,\n MONTH_NAMES,\n WEEKDAY_ABBREVIATIONS,\n WEEKDAY_NAMES,\n describeCron,\n detectFrequency,\n expandField,\n fieldFromValues,\n formatCron,\n isEveryValue,\n parseCron,\n type CronExpression,\n type CronField,\n type CronFieldName,\n type CronFrequency,\n type CronTerm,\n} from \"./utils/cron.js\";\nexport { tokens, tokenValues, darkTokenValues } from \"./tokens.js\";\nexport * from \"./icons.js\";\n"]}
|
package/dist/radio-cards.d.ts
CHANGED
|
@@ -13,15 +13,19 @@ export interface RadioCardOption {
|
|
|
13
13
|
* a basemap style), use `radio-pills` instead. Wraps native radio inputs for
|
|
14
14
|
* keyboard/a11y and fires `change` rather than relying on form submission.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
16
|
+
* An unchecked card is treated as `ui-button`'s secondary variant: it reads
|
|
17
|
+
* the same `--ui-button-secondary-background`/`-hover` and
|
|
18
|
+
* `-border`/`-hover` tokens, so a gradient theme applies to a card exactly
|
|
19
|
+
* like it does to any button. The selected card's border/radio dot instead
|
|
20
|
+
* read `--ui-button-accent` (a solid stand-in, since `border-color`/
|
|
21
|
+
* `accent-color` can't render a gradient), and its background reads the
|
|
22
|
+
* shared `--ui-button-secondary-surface-muted` plus `--ui-button-highlight`,
|
|
23
|
+
* so a gradient theme tints it consistently with `button-group`/
|
|
24
|
+
* `pagination-nav`'s equivalents. That shared value is tuned for small
|
|
25
|
+
* controls, so a card — with far more area — blends it 45% toward
|
|
26
|
+
* `--ui-surface` rather than taking a second token: the tint stays the same
|
|
27
|
+
* hue and gradient, just lighter on light themes (and correspondingly
|
|
28
|
+
* deeper on dark ones) than on a button.
|
|
25
29
|
*
|
|
26
30
|
* `layout` controls how cards flow ("mixed" wraps with per-option
|
|
27
31
|
* `fullWidth` rows, "vertical" stacks one per row, "horizontal" stays
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-cards.d.ts","sourceRoot":"","sources":["../src/radio-cards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAMrD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID
|
|
1
|
+
{"version":3,"file":"radio-cards.d.ts","sourceRoot":"","sources":["../src/radio-cards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAMrD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,UAAW,SAAQ,UAAU;;IACxC,OAAgB,MAAM,4BA4IpB;IAEF,wCAAwC;IACR,OAAO,EAAE,eAAe,EAAE,CAAM;IAChE,gCAAgC;IACpB,KAAK,SAAM;IACvB,gDAAgD;IACnB,QAAQ,UAAS;IAC9C;;;;;;OAMG;IACS,MAAM,EAAE,UAAU,GAAG,YAAY,GAAG,OAAO,CAAW;IAClE,2FAA2F;IACrC,SAAS,UAAS;IAIxE,OAAO,CAAC,SAAS;IAMR,MAAM,yCAyBd;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
|
package/dist/radio-cards.js
CHANGED
|
@@ -17,15 +17,19 @@ let instanceCount = 0;
|
|
|
17
17
|
* a basemap style), use `radio-pills` instead. Wraps native radio inputs for
|
|
18
18
|
* keyboard/a11y and fires `change` rather than relying on form submission.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
20
|
+
* An unchecked card is treated as `ui-button`'s secondary variant: it reads
|
|
21
|
+
* the same `--ui-button-secondary-background`/`-hover` and
|
|
22
|
+
* `-border`/`-hover` tokens, so a gradient theme applies to a card exactly
|
|
23
|
+
* like it does to any button. The selected card's border/radio dot instead
|
|
24
|
+
* read `--ui-button-accent` (a solid stand-in, since `border-color`/
|
|
25
|
+
* `accent-color` can't render a gradient), and its background reads the
|
|
26
|
+
* shared `--ui-button-secondary-surface-muted` plus `--ui-button-highlight`,
|
|
27
|
+
* so a gradient theme tints it consistently with `button-group`/
|
|
28
|
+
* `pagination-nav`'s equivalents. That shared value is tuned for small
|
|
29
|
+
* controls, so a card — with far more area — blends it 45% toward
|
|
30
|
+
* `--ui-surface` rather than taking a second token: the tint stays the same
|
|
31
|
+
* hue and gradient, just lighter on light themes (and correspondingly
|
|
32
|
+
* deeper on dark ones) than on a button.
|
|
29
33
|
*
|
|
30
34
|
* `layout` controls how cards flow ("mixed" wraps with per-option
|
|
31
35
|
* `fullWidth` rows, "vertical" stacks one per row, "horizontal" stays
|
|
@@ -95,7 +99,8 @@ let RadioCards = class RadioCards extends LitElement {
|
|
|
95
99
|
align-items: flex-start;
|
|
96
100
|
gap: 0.5rem;
|
|
97
101
|
box-sizing: border-box;
|
|
98
|
-
|
|
102
|
+
background: var(--ui-button-secondary-background, none);
|
|
103
|
+
border: 1px solid var(--ui-button-secondary-border, var(--ui-border, #e2e8f0));
|
|
99
104
|
border-radius: var(--ui-radius-sm, 0.25rem);
|
|
100
105
|
padding: 0.5rem 0.75rem;
|
|
101
106
|
cursor: pointer;
|
|
@@ -111,6 +116,13 @@ let RadioCards = class RadioCards extends LitElement {
|
|
|
111
116
|
);
|
|
112
117
|
font-size: var(--ui-font-size-sm, 0.75rem);
|
|
113
118
|
}
|
|
119
|
+
/* Unchecked cards are treated as ui-button's secondary variant (same
|
|
120
|
+
resting/hover gradient tokens), so a gradient theme applies here the
|
|
121
|
+
same way it does to every button — a card is not a special case. */
|
|
122
|
+
.card:hover:not(:has(input:disabled)):not(:has(input:checked)) {
|
|
123
|
+
background: var(--ui-button-secondary-background-hover, none);
|
|
124
|
+
border-color: var(--ui-button-secondary-border-hover, var(--ui-text-muted, #64748b));
|
|
125
|
+
}
|
|
114
126
|
/* Same single muted-surface variable as button-group/pagination-nav,
|
|
115
127
|
but blended toward the card's own surface: that value is tuned for a
|
|
116
128
|
small control, and across a card's much larger area it reads too
|
package/dist/radio-cards.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-cards.js","sourceRoot":"","sources":["../src/radio-cards.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE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AAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;;;wBAG7E,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;uBACxC,IAAI,CAAC,KAAK;2BACN,IAAI,CAAC,KAAK,KAAK,GAAG,CAAC,KAAK;4BACvB,IAAI,CAAC,QAAQ;0BACf,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC;;;2CAGd,GAAG,CAAC,KAAK;kBAClC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAA,kCAAkC,GAAG,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,OAAO;;;WAGjG,CACF;;KAEJ,CAAC;IACJ,CAAC;CACF,CAAA;AAlDiC;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;2CAAiC;AAEpD;IAAX,QAAQ,EAAE;yCAAY;AAEM;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4CAAkB;AAQlC;IAAX,QAAQ,EAAE;0CAAuD;AAEZ;IAArD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;6CAAmB;AAtJ7D,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA0LtB","sourcesContent":["import { LitElement, css, html, nothing } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { repeat } from \"lit/directives/repeat.js\";\nimport { tokens } from \"./tokens.js\";\n\nexport interface RadioCardOption {\n value: string;\n label: string;\n description?: string;\n /** In `layout=\"mixed\"`, forces this card onto its own full-width row. */\n fullWidth?: boolean;\n}\n\nlet instanceCount = 0;\n\n/**\n * Single-select group of full-width cards, each with a label and optional\n * description — for a handful of meaningfully different choices where the\n * description matters. For many short, same-shaped options (a color swatch,\n * a basemap style), use `radio-pills` instead. Wraps native radio inputs for\n * keyboard/a11y and fires `change` rather than relying on form submission.\n *\n * The selected card's border/radio dot read `--ui-button-accent` (a solid\n * stand-in, since `border-color`/`accent-color` can't render a gradient),\n * and its background reads the shared `--ui-button-secondary-surface-muted`\n * plus `--ui-button-highlight`, so a gradient theme tints it consistently\n * with `button-group`/`pagination-nav`'s equivalents. That shared value is\n * tuned for small controls, so a card — with far more area — blends it 45%\n * toward `--ui-surface` rather than taking a second token: the tint stays\n * the same hue and gradient, just lighter on light themes (and\n * correspondingly deeper on dark ones) than on a button.\n *\n * `layout` controls how cards flow (\"mixed\" wraps with per-option\n * `fullWidth` rows, \"vertical\" stacks one per row, \"horizontal\" stays\n * side-by-side at every width). `hideInput` visually hides the radio dot via\n * the same `sr-only` clip pattern as `ui-checkbox` — the native input stays\n * in the DOM for keyboard/a11y, and the card's own border/tint carries the\n * selected state instead.\n *\n * @element radio-cards\n * @fires change - A card was selected; detail: { value }.\n */\n@customElement(\"radio-cards\")\nexport class RadioCards extends LitElement {\n static override styles = [\n tokens,\n css`\n :host {\n display: block;\n }\n .options {\n display: flex;\n gap: 0.5rem;\n }\n .options.mixed {\n flex-wrap: wrap;\n }\n .options.mixed .card {\n flex: 1 1 11.25rem;\n }\n .options.mixed .card.full {\n flex: 1 0 100%;\n }\n .options.vertical {\n flex-direction: column;\n }\n .options.vertical .card {\n flex: 0 0 auto;\n }\n .options.horizontal {\n flex-wrap: nowrap;\n }\n .options.horizontal .card {\n flex: 1 1 0;\n min-width: 0;\n }\n .card {\n display: flex;\n align-items: flex-start;\n gap: 0.5rem;\n box-sizing: border-box;\n border: 1px solid var(--ui-border, #e2e8f0);\n border-radius: var(--ui-radius-sm, 0.25rem);\n padding: 0.5rem 0.75rem;\n cursor: pointer;\n font-family: var(\n --ui-font,\n ui-sans-serif,\n system-ui,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\",\n \"Noto Color Emoji\"\n );\n font-size: var(--ui-font-size-sm, 0.75rem);\n }\n /* Same single muted-surface variable as button-group/pagination-nav,\n but blended toward the card's own surface: that value is tuned for a\n small control, and across a card's much larger area it reads too\n heavy. Mixing with --ui-surface (rather than plain white) keeps the\n adjustment theme-correct — it lightens on light themes and deepens\n on dark ones. Written with the background shorthand (not\n background-image) so it stays valid whether the variable resolves to\n a gradient or a flat color. */\n .card:has(input:checked) {\n border-color: var(--ui-button-accent, var(--ui-primary, #4f46e5));\n background:\n linear-gradient(\n color-mix(in srgb, var(--ui-surface, #ffffff) 45%, transparent),\n color-mix(in srgb, var(--ui-surface, #ffffff) 45%, transparent)\n ),\n var(--ui-button-secondary-surface-muted, var(--ui-surface-muted, #f8fafc));\n box-shadow: var(--ui-button-highlight, 0 0 0 0 transparent);\n }\n .card input {\n width: 1rem;\n height: 1rem;\n margin-top: 0.25rem;\n accent-color: var(--ui-button-accent, var(--ui-primary, #4f46e5));\n cursor: pointer;\n }\n .card-label {\n font-weight: var(--ui-font-weight-semibold, 600);\n color: var(--ui-text, #0f172a);\n }\n .card-description {\n display: block;\n color: var(--ui-text-muted, #64748b);\n font-weight: var(--ui-font-weight-regular, 400);\n }\n .card:has(input:focus-visible) {\n outline: none;\n box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35));\n }\n .card:has(input:checked):has(input:focus-visible) {\n box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35)), var(--ui-button-highlight, 0 0 0 0 transparent);\n }\n .card:has(input:disabled) {\n cursor: not-allowed;\n opacity: 0.6;\n }\n .card:has(input:disabled) input {\n cursor: not-allowed;\n }\n .card input.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n @media (forced-colors: active) {\n .card:has(input:focus-visible) {\n outline: 2px solid CanvasText;\n outline-offset: 2px;\n box-shadow: none;\n }\n .card:has(input:checked) {\n border-color: Highlight;\n }\n .card:has(input:disabled) {\n color: GrayText;\n opacity: 1;\n }\n .card:has(input:disabled) .card-label,\n .card:has(input:disabled) .card-description {\n color: GrayText;\n }\n }\n `,\n ];\n\n /** Options to render, one card each. */\n @property({ attribute: false }) options: RadioCardOption[] = [];\n /** Currently selected value. */\n @property() value = \"\";\n /** Disables every native radio in the group. */\n @property({ type: Boolean }) disabled = false;\n /**\n * How the cards flow.\n * - \"mixed\" (default): cards wrap onto as many rows as fit; options marked\n * `fullWidth` take a row of their own.\n * - \"vertical\": one full-width card per row, never side by side.\n * - \"horizontal\": every card on one row, equal widths, no wrapping.\n */\n @property() layout: \"vertical\" | \"horizontal\" | \"mixed\" = \"mixed\";\n /** Visually hides the radio dot; the card's own border/tint carries the selected state. */\n @property({ type: Boolean, attribute: \"hide-input\" }) hideInput = false;\n\n readonly #name = `radio-cards-${++instanceCount}`;\n\n private _onChange(value: string) {\n if (this.disabled) return;\n this.value = value;\n this.dispatchEvent(new CustomEvent(\"change\", { detail: { value }, bubbles: true, composed: true }));\n }\n\n override render() {\n return html`\n <div class=\"options ${this.layout}\">\n ${repeat(\n this.options,\n (opt) => opt.value,\n (opt) => html`\n <label class=${classMap({ card: true, full: this.layout === \"mixed\" && !!opt.fullWidth })}>\n <input\n type=\"radio\"\n class=${classMap({ \"sr-only\": this.hideInput })}\n name=${this.#name}\n .checked=${this.value === opt.value}\n ?disabled=${this.disabled}\n @change=${() => this._onChange(opt.value)}\n />\n <span>\n <span class=\"card-label\">${opt.label}</span>\n ${opt.description ? html`<span class=\"card-description\">${opt.description}</span>` : nothing}\n </span>\n </label>\n `,\n )}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"radio-cards\": RadioCards;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"radio-cards.js","sourceRoot":"","sources":["../src/radio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CAkMtB","sourcesContent":["import { LitElement, css, html, nothing } from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport { classMap } from \"lit/directives/class-map.js\";\nimport { repeat } from \"lit/directives/repeat.js\";\nimport { tokens } from \"./tokens.js\";\n\nexport interface RadioCardOption {\n value: string;\n label: string;\n description?: string;\n /** In `layout=\"mixed\"`, forces this card onto its own full-width row. */\n fullWidth?: boolean;\n}\n\nlet instanceCount = 0;\n\n/**\n * Single-select group of full-width cards, each with a label and optional\n * description — for a handful of meaningfully different choices where the\n * description matters. For many short, same-shaped options (a color swatch,\n * a basemap style), use `radio-pills` instead. Wraps native radio inputs for\n * keyboard/a11y and fires `change` rather than relying on form submission.\n *\n * An unchecked card is treated as `ui-button`'s secondary variant: it reads\n * the same `--ui-button-secondary-background`/`-hover` and\n * `-border`/`-hover` tokens, so a gradient theme applies to a card exactly\n * like it does to any button. The selected card's border/radio dot instead\n * read `--ui-button-accent` (a solid stand-in, since `border-color`/\n * `accent-color` can't render a gradient), and its background reads the\n * shared `--ui-button-secondary-surface-muted` plus `--ui-button-highlight`,\n * so a gradient theme tints it consistently with `button-group`/\n * `pagination-nav`'s equivalents. That shared value is tuned for small\n * controls, so a card — with far more area — blends it 45% toward\n * `--ui-surface` rather than taking a second token: the tint stays the same\n * hue and gradient, just lighter on light themes (and correspondingly\n * deeper on dark ones) than on a button.\n *\n * `layout` controls how cards flow (\"mixed\" wraps with per-option\n * `fullWidth` rows, \"vertical\" stacks one per row, \"horizontal\" stays\n * side-by-side at every width). `hideInput` visually hides the radio dot via\n * the same `sr-only` clip pattern as `ui-checkbox` — the native input stays\n * in the DOM for keyboard/a11y, and the card's own border/tint carries the\n * selected state instead.\n *\n * @element radio-cards\n * @fires change - A card was selected; detail: { value }.\n */\n@customElement(\"radio-cards\")\nexport class RadioCards extends LitElement {\n static override styles = [\n tokens,\n css`\n :host {\n display: block;\n }\n .options {\n display: flex;\n gap: 0.5rem;\n }\n .options.mixed {\n flex-wrap: wrap;\n }\n .options.mixed .card {\n flex: 1 1 11.25rem;\n }\n .options.mixed .card.full {\n flex: 1 0 100%;\n }\n .options.vertical {\n flex-direction: column;\n }\n .options.vertical .card {\n flex: 0 0 auto;\n }\n .options.horizontal {\n flex-wrap: nowrap;\n }\n .options.horizontal .card {\n flex: 1 1 0;\n min-width: 0;\n }\n .card {\n display: flex;\n align-items: flex-start;\n gap: 0.5rem;\n box-sizing: border-box;\n background: var(--ui-button-secondary-background, none);\n border: 1px solid var(--ui-button-secondary-border, var(--ui-border, #e2e8f0));\n border-radius: var(--ui-radius-sm, 0.25rem);\n padding: 0.5rem 0.75rem;\n cursor: pointer;\n font-family: var(\n --ui-font,\n ui-sans-serif,\n system-ui,\n sans-serif,\n \"Apple Color Emoji\",\n \"Segoe UI Emoji\",\n \"Segoe UI Symbol\",\n \"Noto Color Emoji\"\n );\n font-size: var(--ui-font-size-sm, 0.75rem);\n }\n /* Unchecked cards are treated as ui-button's secondary variant (same\n resting/hover gradient tokens), so a gradient theme applies here the\n same way it does to every button — a card is not a special case. */\n .card:hover:not(:has(input:disabled)):not(:has(input:checked)) {\n background: var(--ui-button-secondary-background-hover, none);\n border-color: var(--ui-button-secondary-border-hover, var(--ui-text-muted, #64748b));\n }\n /* Same single muted-surface variable as button-group/pagination-nav,\n but blended toward the card's own surface: that value is tuned for a\n small control, and across a card's much larger area it reads too\n heavy. Mixing with --ui-surface (rather than plain white) keeps the\n adjustment theme-correct — it lightens on light themes and deepens\n on dark ones. Written with the background shorthand (not\n background-image) so it stays valid whether the variable resolves to\n a gradient or a flat color. */\n .card:has(input:checked) {\n border-color: var(--ui-button-accent, var(--ui-primary, #4f46e5));\n background:\n linear-gradient(\n color-mix(in srgb, var(--ui-surface, #ffffff) 45%, transparent),\n color-mix(in srgb, var(--ui-surface, #ffffff) 45%, transparent)\n ),\n var(--ui-button-secondary-surface-muted, var(--ui-surface-muted, #f8fafc));\n box-shadow: var(--ui-button-highlight, 0 0 0 0 transparent);\n }\n .card input {\n width: 1rem;\n height: 1rem;\n margin-top: 0.25rem;\n accent-color: var(--ui-button-accent, var(--ui-primary, #4f46e5));\n cursor: pointer;\n }\n .card-label {\n font-weight: var(--ui-font-weight-semibold, 600);\n color: var(--ui-text, #0f172a);\n }\n .card-description {\n display: block;\n color: var(--ui-text-muted, #64748b);\n font-weight: var(--ui-font-weight-regular, 400);\n }\n .card:has(input:focus-visible) {\n outline: none;\n box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35));\n }\n .card:has(input:checked):has(input:focus-visible) {\n box-shadow: var(--ui-focus-ring, 0 0 0 3px rgb(79 70 229 / 0.35)), var(--ui-button-highlight, 0 0 0 0 transparent);\n }\n .card:has(input:disabled) {\n cursor: not-allowed;\n opacity: 0.6;\n }\n .card:has(input:disabled) input {\n cursor: not-allowed;\n }\n .card input.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n }\n @media (forced-colors: active) {\n .card:has(input:focus-visible) {\n outline: 2px solid CanvasText;\n outline-offset: 2px;\n box-shadow: none;\n }\n .card:has(input:checked) {\n border-color: Highlight;\n }\n .card:has(input:disabled) {\n color: GrayText;\n opacity: 1;\n }\n .card:has(input:disabled) .card-label,\n .card:has(input:disabled) .card-description {\n color: GrayText;\n }\n }\n `,\n ];\n\n /** Options to render, one card each. */\n @property({ attribute: false }) options: RadioCardOption[] = [];\n /** Currently selected value. */\n @property() value = \"\";\n /** Disables every native radio in the group. */\n @property({ type: Boolean }) disabled = false;\n /**\n * How the cards flow.\n * - \"mixed\" (default): cards wrap onto as many rows as fit; options marked\n * `fullWidth` take a row of their own.\n * - \"vertical\": one full-width card per row, never side by side.\n * - \"horizontal\": every card on one row, equal widths, no wrapping.\n */\n @property() layout: \"vertical\" | \"horizontal\" | \"mixed\" = \"mixed\";\n /** Visually hides the radio dot; the card's own border/tint carries the selected state. */\n @property({ type: Boolean, attribute: \"hide-input\" }) hideInput = false;\n\n readonly #name = `radio-cards-${++instanceCount}`;\n\n private _onChange(value: string) {\n if (this.disabled) return;\n this.value = value;\n this.dispatchEvent(new CustomEvent(\"change\", { detail: { value }, bubbles: true, composed: true }));\n }\n\n override render() {\n return html`\n <div class=\"options ${this.layout}\">\n ${repeat(\n this.options,\n (opt) => opt.value,\n (opt) => html`\n <label class=${classMap({ card: true, full: this.layout === \"mixed\" && !!opt.fullWidth })}>\n <input\n type=\"radio\"\n class=${classMap({ \"sr-only\": this.hideInput })}\n name=${this.#name}\n .checked=${this.value === opt.value}\n ?disabled=${this.disabled}\n @change=${() => this._onChange(opt.value)}\n />\n <span>\n <span class=\"card-label\">${opt.label}</span>\n ${opt.description ? html`<span class=\"card-description\">${opt.description}</span>` : nothing}\n </span>\n </label>\n `,\n )}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"radio-cards\": RadioCards;\n }\n}\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# `<chevron-panel>`
|
|
2
|
+
|
|
3
|
+
A generic disclosure: a clickable header that expands/collapses a body,
|
|
4
|
+
with a chevron that rotates to reflect state. Headline and body are both
|
|
5
|
+
slotted, so any markup can go in either — unlike `chat-message`'s
|
|
6
|
+
built-in collapsible mode, which only slots the body and builds its
|
|
7
|
+
header from discrete properties (author/timestamp/summary).
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import "@f-ewald/components/chevron-panel.js";
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<chevron-panel>
|
|
19
|
+
<strong slot="headline">Why these scores?</strong>
|
|
20
|
+
<p>Each category blends several weighted inputs.</p>
|
|
21
|
+
</chevron-panel>
|
|
22
|
+
<script type="module">
|
|
23
|
+
document.querySelector("chevron-panel").addEventListener("toggle", (e) => {
|
|
24
|
+
console.log(e.detail.open);
|
|
25
|
+
});
|
|
26
|
+
</script>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Attributes / properties
|
|
30
|
+
|
|
31
|
+
| Property | Attribute | Type | Default | Description |
|
|
32
|
+
| --- | --- | --- | --- | --- |
|
|
33
|
+
| `open` | `open` | `boolean` | `false` | Whether the body is currently expanded. |
|
|
34
|
+
|
|
35
|
+
## Events
|
|
36
|
+
|
|
37
|
+
| Event | Description |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| `toggle` | Fired with `{ open: boolean }` when the header is clicked. |
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Slot | Description |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| `(default)` | Body content, shown only while `open`. |
|
|
46
|
+
| `headline` | Header content, always visible, clickable to toggle. |
|
|
47
|
+
|
|
48
|
+
## CSS custom properties
|
|
49
|
+
|
|
50
|
+
| Custom property |
|
|
51
|
+
| --- |
|
|
52
|
+
| `--ui-focus-ring` |
|
|
53
|
+
| `--ui-font` |
|
|
54
|
+
| `--ui-radius-sm` |
|
|
55
|
+
| `--ui-text` |
|
|
56
|
+
| `--ui-text-muted` |
|
package/docs/radio-cards.md
CHANGED
|
@@ -6,15 +6,19 @@ description matters. For many short, same-shaped options (a color swatch,
|
|
|
6
6
|
a basemap style), use `radio-pills` instead. Wraps native radio inputs for
|
|
7
7
|
keyboard/a11y and fires `change` rather than relying on form submission.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
An unchecked card is treated as `ui-button`'s secondary variant: it reads
|
|
10
|
+
the same `--ui-button-secondary-background`/`-hover` and
|
|
11
|
+
`-border`/`-hover` tokens, so a gradient theme applies to a card exactly
|
|
12
|
+
like it does to any button. The selected card's border/radio dot instead
|
|
13
|
+
read `--ui-button-accent` (a solid stand-in, since `border-color`/
|
|
14
|
+
`accent-color` can't render a gradient), and its background reads the
|
|
15
|
+
shared `--ui-button-secondary-surface-muted` plus `--ui-button-highlight`,
|
|
16
|
+
so a gradient theme tints it consistently with `button-group`/
|
|
17
|
+
`pagination-nav`'s equivalents. That shared value is tuned for small
|
|
18
|
+
controls, so a card — with far more area — blends it 45% toward
|
|
19
|
+
`--ui-surface` rather than taking a second token: the tint stays the same
|
|
20
|
+
hue and gradient, just lighter on light themes (and correspondingly
|
|
21
|
+
deeper on dark ones) than on a button.
|
|
18
22
|
|
|
19
23
|
`layout` controls how cards flow ("mixed" wraps with per-option
|
|
20
24
|
`fullWidth` rows, "vertical" stacks one per row, "horizontal" stays
|
|
@@ -71,6 +75,10 @@ _None._
|
|
|
71
75
|
| `--ui-border` |
|
|
72
76
|
| `--ui-button-accent` |
|
|
73
77
|
| `--ui-button-highlight` |
|
|
78
|
+
| `--ui-button-secondary-background` |
|
|
79
|
+
| `--ui-button-secondary-background-hover` |
|
|
80
|
+
| `--ui-button-secondary-border` |
|
|
81
|
+
| `--ui-button-secondary-border-hover` |
|
|
74
82
|
| `--ui-button-secondary-surface-muted` |
|
|
75
83
|
| `--ui-focus-ring` |
|
|
76
84
|
| `--ui-font` |
|
package/llms.txt
CHANGED
|
@@ -601,6 +601,33 @@ Example:
|
|
|
601
601
|
</chat-message>
|
|
602
602
|
```
|
|
603
603
|
|
|
604
|
+
## <chevron-panel>
|
|
605
|
+
|
|
606
|
+
A generic disclosure: a clickable header that expands/collapses a body,
|
|
607
|
+
with a chevron that rotates to reflect state. Headline and body are both
|
|
608
|
+
slotted, so any markup can go in either — unlike `chat-message`'s
|
|
609
|
+
built-in collapsible mode, which only slots the body and builds its
|
|
610
|
+
header from discrete properties (author/timestamp/summary).
|
|
611
|
+
|
|
612
|
+
Import: `import "@f-ewald/components/chevron-panel.js";`
|
|
613
|
+
|
|
614
|
+
Properties: `open` (attribute `open`) : boolean, default false
|
|
615
|
+
Events: `toggle`
|
|
616
|
+
CSS custom properties: `--ui-focus-ring`, `--ui-font`, `--ui-radius-sm`, `--ui-text`, `--ui-text-muted`
|
|
617
|
+
|
|
618
|
+
Example:
|
|
619
|
+
```html
|
|
620
|
+
<chevron-panel>
|
|
621
|
+
<strong slot="headline">Why these scores?</strong>
|
|
622
|
+
<p>Each category blends several weighted inputs.</p>
|
|
623
|
+
</chevron-panel>
|
|
624
|
+
<script type="module">
|
|
625
|
+
document.querySelector("chevron-panel").addEventListener("toggle", (e) => {
|
|
626
|
+
console.log(e.detail.open);
|
|
627
|
+
});
|
|
628
|
+
</script>
|
|
629
|
+
```
|
|
630
|
+
|
|
604
631
|
## <comment-composer>
|
|
605
632
|
|
|
606
633
|
GitHub/Slack-style comment composer: a one-line text field that expands
|
|
@@ -1828,15 +1855,19 @@ description matters. For many short, same-shaped options (a color swatch,
|
|
|
1828
1855
|
a basemap style), use `radio-pills` instead. Wraps native radio inputs for
|
|
1829
1856
|
keyboard/a11y and fires `change` rather than relying on form submission.
|
|
1830
1857
|
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1858
|
+
An unchecked card is treated as `ui-button`'s secondary variant: it reads
|
|
1859
|
+
the same `--ui-button-secondary-background`/`-hover` and
|
|
1860
|
+
`-border`/`-hover` tokens, so a gradient theme applies to a card exactly
|
|
1861
|
+
like it does to any button. The selected card's border/radio dot instead
|
|
1862
|
+
read `--ui-button-accent` (a solid stand-in, since `border-color`/
|
|
1863
|
+
`accent-color` can't render a gradient), and its background reads the
|
|
1864
|
+
shared `--ui-button-secondary-surface-muted` plus `--ui-button-highlight`,
|
|
1865
|
+
so a gradient theme tints it consistently with `button-group`/
|
|
1866
|
+
`pagination-nav`'s equivalents. That shared value is tuned for small
|
|
1867
|
+
controls, so a card — with far more area — blends it 45% toward
|
|
1868
|
+
`--ui-surface` rather than taking a second token: the tint stays the same
|
|
1869
|
+
hue and gradient, just lighter on light themes (and correspondingly
|
|
1870
|
+
deeper on dark ones) than on a button.
|
|
1840
1871
|
|
|
1841
1872
|
`layout` controls how cards flow ("mixed" wraps with per-option
|
|
1842
1873
|
`fullWidth` rows, "vertical" stacks one per row, "horizontal" stays
|
|
@@ -1849,7 +1880,7 @@ Import: `import "@f-ewald/components/radio-cards.js";`
|
|
|
1849
1880
|
|
|
1850
1881
|
Properties: `options` (JS property only) : RadioCardOption[], default []; `value` (attribute `value`) : string, default ""; `disabled` (attribute `disabled`) : boolean, default false; `layout` (attribute `layout`) : "vertical" | "horizontal" | "mixed", default "mixed"; `hideInput` (attribute `hide-input`) : boolean, default false
|
|
1851
1882
|
Events: `change`
|
|
1852
|
-
CSS custom properties: `--ui-border`, `--ui-button-accent`, `--ui-button-highlight`, `--ui-button-secondary-surface-muted`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-weight-regular`, `--ui-font-weight-semibold`, `--ui-primary`, `--ui-radius-sm`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1883
|
+
CSS custom properties: `--ui-border`, `--ui-button-accent`, `--ui-button-highlight`, `--ui-button-secondary-background`, `--ui-button-secondary-background-hover`, `--ui-button-secondary-border`, `--ui-button-secondary-border-hover`, `--ui-button-secondary-surface-muted`, `--ui-focus-ring`, `--ui-font`, `--ui-font-size-sm`, `--ui-font-weight-regular`, `--ui-font-weight-semibold`, `--ui-primary`, `--ui-radius-sm`, `--ui-surface`, `--ui-surface-muted`, `--ui-text`, `--ui-text-muted`
|
|
1853
1884
|
|
|
1854
1885
|
Example:
|
|
1855
1886
|
```html
|