ghostcn 1.5.0 → 1.7.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.
- package/dist/commands/create.js +10 -3
- package/dist/commands/diff.js +47 -5
- package/dist/commands/init.js +17 -8
- package/dist/commands/list.js +22 -4
- package/dist/registry/components/accordion.json +66 -0
- package/dist/registry/components/account-card.json +57 -0
- package/dist/registry/components/announcement-bar.json +79 -0
- package/dist/registry/components/archive-header.json +1 -1
- package/dist/registry/components/author-card.json +2 -2
- package/dist/registry/components/author-list.json +1 -1
- package/dist/registry/components/author-stack.json +63 -0
- package/dist/registry/components/avatar.json +62 -0
- package/dist/registry/components/back-to-top.json +72 -0
- package/dist/registry/components/breadcrumbs.json +59 -0
- package/dist/registry/components/button.json +1 -1
- package/dist/registry/components/callout.json +56 -0
- package/dist/registry/components/checkbox.json +82 -0
- package/dist/registry/components/code-copy.json +52 -0
- package/dist/registry/components/comments-section.json +56 -0
- package/dist/registry/components/dialog.json +83 -0
- package/dist/registry/components/dropdown.json +85 -0
- package/dist/registry/components/empty-state.json +65 -0
- package/dist/registry/components/error-card.json +74 -0
- package/dist/registry/components/faq-section.json +83 -0
- package/dist/registry/components/featured-posts.json +2 -2
- package/dist/registry/components/hero.json +89 -0
- package/dist/registry/components/image-lightbox.json +44 -0
- package/dist/registry/components/input.json +8 -2
- package/dist/registry/components/magazine-grid.json +62 -0
- package/dist/registry/components/member-cta.json +1 -1
- package/dist/registry/components/mobile-dock.json +69 -0
- package/dist/registry/components/newsletter-form.json +12 -3
- package/dist/registry/components/pagination.json +2 -2
- package/dist/registry/components/post-card.json +2 -2
- package/dist/registry/components/post-grid.json +2 -2
- package/dist/registry/components/post-header.json +2 -2
- package/dist/registry/components/post-list.json +62 -0
- package/dist/registry/components/pricing-table.json +24 -4
- package/dist/registry/components/pull-quote.json +70 -0
- package/dist/registry/components/radio-group.json +94 -0
- package/dist/registry/components/reader-controls.json +60 -0
- package/dist/registry/components/reading-meta.json +49 -0
- package/dist/registry/components/reading-progress.json +73 -0
- package/dist/registry/components/related-posts.json +7 -1
- package/dist/registry/components/search-trigger.json +68 -0
- package/dist/registry/components/select.json +94 -0
- package/dist/registry/components/separator.json +46 -0
- package/dist/registry/components/series-nav.json +62 -0
- package/dist/registry/components/share-buttons.json +76 -0
- package/dist/registry/components/site-footer.json +2 -2
- package/dist/registry/components/site-header.json +1 -1
- package/dist/registry/components/skeleton.json +48 -0
- package/dist/registry/components/skip-link.json +53 -0
- package/dist/registry/components/social-links.json +74 -0
- package/dist/registry/components/stat-strip.json +85 -0
- package/dist/registry/components/sticky-subscribe.json +82 -0
- package/dist/registry/components/subscribe-bar.json +61 -0
- package/dist/registry/components/switch.json +76 -0
- package/dist/registry/components/table-of-contents.json +12 -2
- package/dist/registry/components/tabs.json +81 -0
- package/dist/registry/components/tag-bar.json +63 -0
- package/dist/registry/components/tag-grid.json +1 -1
- package/dist/registry/components/tag-list.json +1 -1
- package/dist/registry/components/textarea.json +95 -0
- package/dist/registry/components/theme-toggle.json +65 -0
- package/dist/registry/components/tier-comparison.json +55 -0
- package/dist/registry/components/timeline.json +85 -0
- package/dist/registry/components/tooltip.json +65 -0
- package/dist/registry/components/visibility-badge.json +71 -0
- package/dist/registry/index.json +478 -4
- package/dist/templates/playground/index.html +2 -2
- package/dist/templates/playground/playground.css +8 -1
- package/dist/templates/playground/playground.js +39 -5
- package/dist/templates/playground/preview.css +1 -0
- package/dist/templates/theme-tools.mjs +62 -24
- package/dist/utils/component-diff.d.ts +1 -1
- package/dist/utils/component-diff.js +46 -17
- package/dist/utils/component-files.js +3 -2
- package/dist/utils/component-history.js +1 -1
- package/dist/utils/playground-server.js +40 -12
- package/dist/utils/preview-renderer.d.ts +77 -0
- package/dist/utils/preview-renderer.js +68 -8
- package/dist/utils/registry.js +15 -5
- package/dist/utils/theme-files.js +14 -7
- package/dist/utils/theme-project.js +6 -4
- package/dist/utils/theme-scaffold.js +22 -7
- package/dist/utils/theme.js +39 -32
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "avatar",
|
|
3
|
+
"type": "components:ui",
|
|
4
|
+
"description": "A reusable author or user avatar with image and initials fallback.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Visual treatment; unknown values fall back to default.",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"rounded",
|
|
13
|
+
"outline"
|
|
14
|
+
],
|
|
15
|
+
"default": "default"
|
|
16
|
+
},
|
|
17
|
+
"size": {
|
|
18
|
+
"description": "Component scale; unknown values fall back to default.",
|
|
19
|
+
"options": [
|
|
20
|
+
"sm",
|
|
21
|
+
"default",
|
|
22
|
+
"lg"
|
|
23
|
+
],
|
|
24
|
+
"default": "default"
|
|
25
|
+
},
|
|
26
|
+
"src": {
|
|
27
|
+
"description": "Image URL; falls back to profile_image inside a Ghost author context."
|
|
28
|
+
},
|
|
29
|
+
"name": {
|
|
30
|
+
"description": "Display name used for alt text and initials fallback."
|
|
31
|
+
},
|
|
32
|
+
"href": {
|
|
33
|
+
"description": "Optional trusted profile URL."
|
|
34
|
+
},
|
|
35
|
+
"decorative": {
|
|
36
|
+
"description": "Boolean. Hide avatar alt/initial from screen readers when placed next to a visible name."
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
{
|
|
41
|
+
"name": "avatar.hbs",
|
|
42
|
+
"type": "partial",
|
|
43
|
+
"target": "partials/components/avatar.hbs",
|
|
44
|
+
"content": "{{!-- Styling parameters: class, imageClass --}}\n{{#with this as |ghostcnStyles|}}\n{{#if href}}\n<a class=\"ghcn-ui-avatar{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"rounded\"}}rounded{{else}}{{#match variant \"outline\"}}outline{{else}}default{{/match}}{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\" href=\"{{href}}\"{{#if name}} aria-label=\"{{name}}\"{{/if}}>{{#if src}}<img class=\"ghcn-ui-avatar__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" src=\"{{img_url src size=\"xs\"}}\" alt=\"{{#unless decorative}}{{#if name}}{{name}}{{/if}}{{/unless}}\" loading=\"lazy\" />{{else if profile_image}}<img class=\"ghcn-ui-avatar__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" src=\"{{img_url profile_image size=\"xs\"}}\" alt=\"{{#unless decorative}}{{#if name}}{{name}}{{/if}}{{/unless}}\" loading=\"lazy\" />{{else}}<span class=\"ghcn-ui-avatar__fallback{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\"{{#if decorative}} aria-hidden=\"true\"{{else}}{{#if name}} role=\"img\" aria-label=\"{{name}}\"{{/if}}{{/if}}>{{#if name}}{{name.[0]}}{{else}}?{{/if}}</span>{{/if}}</a>\n{{else}}\n<span class=\"ghcn-ui-avatar{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"rounded\"}}rounded{{else}}{{#match variant \"outline\"}}outline{{else}}default{{/match}}{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\">{{#if src}}<img class=\"ghcn-ui-avatar__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" src=\"{{img_url src size=\"xs\"}}\" alt=\"{{#unless decorative}}{{#if name}}{{name}}{{/if}}{{/unless}}\" loading=\"lazy\" />{{else if profile_image}}<img class=\"ghcn-ui-avatar__image{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\" src=\"{{img_url profile_image size=\"xs\"}}\" alt=\"{{#unless decorative}}{{#if name}}{{name}}{{/if}}{{/unless}}\" loading=\"lazy\" />{{else}}<span class=\"ghcn-ui-avatar__fallback{{#if ghostcnStyles.imageClass}} {{ghostcnStyles.imageClass}}{{/if}}\"{{#if decorative}} aria-hidden=\"true\"{{else}}{{#if name}} role=\"img\" aria-label=\"{{name}}\"{{/if}}{{/if}}>{{#if name}}{{name.[0]}}{{else}}?{{/if}}</span>{{/if}}</span>\n{{/if}}\n{{/with}}"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "avatar.css",
|
|
48
|
+
"type": "style",
|
|
49
|
+
"target": "assets/css/components/avatar.css",
|
|
50
|
+
"content": ".ghcn-ui-avatar { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-avatar, .ghcn-ui-avatar * { box-sizing: border-box; }\n.ghcn-ui-avatar:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-avatar:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-avatar:focus-visible, :where(.ghcn-ui-avatar) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; overflow: hidden; border-radius: 9999px; border: 1px solid var(--border); background: var(--muted); color: var(--foreground); text-decoration: none; vertical-align: middle; }\n.ghcn-ui-avatar:where([data-size=\"sm\"]) { width: 28px; height: 28px; font-size: 12px; }\n.ghcn-ui-avatar:where([data-size=\"lg\"]) { width: 56px; height: 56px; font-size: 20px; }\n.ghcn-ui-avatar:where([data-variant=\"rounded\"]) { border-radius: var(--ghcn-control-radius, var(--radius, 8px)); }\n.ghcn-ui-avatar:where([data-variant=\"outline\"]) { border: 2px solid var(--primary); padding: 2px; background: var(--background); }\n.ghcn-ui-avatar:where([data-variant=\"outline\"]) .ghcn-ui-avatar__image, .ghcn-ui-avatar:where([data-variant=\"outline\"]) .ghcn-ui-avatar__fallback { border-radius: inherit; }\n.ghcn-ui-avatar__image { display: block; width: 100%; height: 100%; object-fit: cover; }\n.ghcn-ui-avatar__fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 700; text-transform: uppercase; user-select: none; }\n"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"styleSlots": {
|
|
54
|
+
"class": [
|
|
55
|
+
".ghcn-ui-avatar"
|
|
56
|
+
],
|
|
57
|
+
"imageClass": [
|
|
58
|
+
".ghcn-ui-avatar__image",
|
|
59
|
+
".ghcn-ui-avatar__fallback"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "back-to-top",
|
|
3
|
+
"type": "components:content",
|
|
4
|
+
"description": "Scroll-to-top button that reveals after scrolling past the hero and respects prefers-reduced-motion.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Surface and shape style.",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"outline",
|
|
13
|
+
"pill"
|
|
14
|
+
],
|
|
15
|
+
"default": "default"
|
|
16
|
+
},
|
|
17
|
+
"size": {
|
|
18
|
+
"description": "Button scale.",
|
|
19
|
+
"options": [
|
|
20
|
+
"sm",
|
|
21
|
+
"default",
|
|
22
|
+
"lg"
|
|
23
|
+
],
|
|
24
|
+
"default": "default"
|
|
25
|
+
},
|
|
26
|
+
"label": {
|
|
27
|
+
"description": "Accessible name (and visible text when showLabel=true).",
|
|
28
|
+
"default": "Back to top"
|
|
29
|
+
},
|
|
30
|
+
"showLabel": {
|
|
31
|
+
"description": "Boolean. Display the text label beside the arrow."
|
|
32
|
+
},
|
|
33
|
+
"threshold": {
|
|
34
|
+
"description": "Scroll depth in pixels before showing the fixed button.",
|
|
35
|
+
"default": "320"
|
|
36
|
+
},
|
|
37
|
+
"alwaysVisible": {
|
|
38
|
+
"description": "Boolean. Render inline and always visible (useful in footers and previews)."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
{
|
|
43
|
+
"name": "back-to-top.hbs",
|
|
44
|
+
"type": "partial",
|
|
45
|
+
"target": "partials/components/back-to-top.hbs",
|
|
46
|
+
"content": "{{!-- Styling parameters: class --}}\n{{#with this as |ghostcnStyles|}}\n<button type=\"button\" class=\"ghcn-back-to-top{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-ghcn-back-to-top data-variant=\"{{#match variant \"outline\"}}outline{{else}}{{#match variant \"pill\"}}pill{{else}}default{{/match}}{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\" data-threshold=\"{{#if threshold}}{{threshold}}{{else}}320{{/if}}\"{{#if alwaysVisible}} data-always-visible=\"true\"{{else}} hidden{{/if}} aria-label=\"{{#if label}}{{label}}{{else}}Back to top{{/if}}\">\n <svg aria-hidden=\"true\" viewBox=\"0 0 20 20\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.85\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10 15.5V4.5M5.5 9 10 4.5 14.5 9\"/></svg>\n {{#if showLabel}}<span class=\"ghcn-back-to-top__label\">{{#if label}}{{label}}{{else}}Top{{/if}}</span>{{/if}}\n</button>\n{{/with}}"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "back-to-top.css",
|
|
50
|
+
"type": "style",
|
|
51
|
+
"target": "assets/css/components/back-to-top.css",
|
|
52
|
+
"content": ".ghcn-back-to-top { box-sizing: border-box; position: fixed; right: 20px; bottom: 20px; z-index: 35; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--ghcn-control-radius, var(--radius, 8px)); background: var(--primary); color: var(--primary-foreground); font-family: inherit; font-size: var(--ghcn-text-small, 14px); font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14); transition: opacity 150ms ease, transform 150ms ease, background-color 150ms ease; }\n.ghcn-back-to-top[hidden] { display: none; }\n.ghcn-back-to-top:hover { opacity: 0.92; transform: translateY(-2px); }\n.ghcn-back-to-top:where([data-always-visible=\"true\"]) { position: static; }\n.ghcn-back-to-top:where([data-size=\"sm\"]) { min-width: 34px; height: 34px; padding: 0 9px; font-size: 12px; }\n.ghcn-back-to-top:where([data-size=\"lg\"]) { min-width: 48px; height: 48px; padding: 0 16px; font-size: 15px; }\n.ghcn-back-to-top:where([data-variant=\"outline\"]) { background: var(--card); color: var(--foreground); border-color: var(--border); }\n.ghcn-back-to-top:where([data-variant=\"outline\"]):hover { background: var(--muted); opacity: 1; }\n.ghcn-back-to-top:where([data-variant=\"pill\"]) { border-radius: 9999px; background: var(--card); color: var(--foreground); border-color: var(--border); }\n.ghcn-back-to-top:where([data-variant=\"pill\"]):hover { background: var(--muted); opacity: 1; }\n.ghcn-back-to-top:focus-visible, :where(.ghcn-back-to-top) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n@media (prefers-reduced-motion: reduce) { .ghcn-back-to-top { transition: none; } .ghcn-back-to-top:hover { transform: none; } }\n"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "back-to-top.js",
|
|
56
|
+
"type": "js",
|
|
57
|
+
"target": "assets/js/components/back-to-top.js",
|
|
58
|
+
"content": "/* ghostcn back-to-top: reveals after scroll threshold and scrolls smoothly respecting reduced motion. */\n(() => {\n function init() {\n const buttons = [...document.querySelectorAll('[data-ghcn-back-to-top]')].filter(btn => !btn.dataset.ghcnTopReady);\n if (!buttons.length) return;\n const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');\n buttons.forEach(btn => {\n btn.dataset.ghcnTopReady = 'true';\n btn.addEventListener('click', () => {\n window.scrollTo({ top: 0, behavior: reduced.matches ? 'instant' : 'smooth' });\n });\n });\n const update = () => {\n const y = window.scrollY || document.documentElement.scrollTop || 0;\n buttons.forEach(btn => {\n if (btn.dataset.alwaysVisible === 'true') { btn.hidden = false; return; }\n const threshold = Number(btn.dataset.threshold) || 320;\n btn.hidden = y < threshold;\n });\n };\n update();\n window.addEventListener('scroll', update, { passive: true });\n }\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init, { once: true });\n else init();\n})();"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"gscan": {
|
|
62
|
+
"rules_satisfied": [
|
|
63
|
+
"GS010-PJ-VALID"
|
|
64
|
+
],
|
|
65
|
+
"notes": "Uses native Ghost content and site helpers."
|
|
66
|
+
},
|
|
67
|
+
"styleSlots": {
|
|
68
|
+
"class": [
|
|
69
|
+
".ghcn-back-to-top"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "breadcrumbs",
|
|
3
|
+
"type": "components:content",
|
|
4
|
+
"description": "Accessible breadcrumb navigation with Schema.org BreadcrumbList microdata for posts, tags, and authors.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Separator and surface style.",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"chevron",
|
|
13
|
+
"pill"
|
|
14
|
+
],
|
|
15
|
+
"default": "default"
|
|
16
|
+
},
|
|
17
|
+
"homeLabel": {
|
|
18
|
+
"description": "Label for the home breadcrumb.",
|
|
19
|
+
"default": "Home"
|
|
20
|
+
},
|
|
21
|
+
"current": {
|
|
22
|
+
"description": "Optional override for the current page title."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
{
|
|
27
|
+
"name": "breadcrumbs.hbs",
|
|
28
|
+
"type": "partial",
|
|
29
|
+
"target": "partials/components/breadcrumbs.hbs",
|
|
30
|
+
"content": "{{!-- Styling parameters: class, listClass, linkClass, currentClass --}}\n{{#with this as |ghostcnStyles|}}\n<nav class=\"ghcn-breadcrumbs{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"chevron\"}}chevron{{else}}{{#match variant \"pill\"}}pill{{else}}default{{/match}}{{/match}}\" aria-label=\"Breadcrumb\">\n <ol class=\"ghcn-breadcrumbs__list{{#if ghostcnStyles.listClass}} {{ghostcnStyles.listClass}}{{/if}}\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">\n <li class=\"ghcn-breadcrumbs__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">\n <a class=\"ghcn-breadcrumbs__link{{#if ghostcnStyles.linkClass}} {{ghostcnStyles.linkClass}}{{/if}}\" href=\"{{@site.url}}\" itemprop=\"item\"><span itemprop=\"name\">{{#if homeLabel}}{{homeLabel}}{{else}}Home{{/if}}</span></a>\n <meta itemprop=\"position\" content=\"1\" />\n </li>\n {{#if primary_tag}}\n <li class=\"ghcn-breadcrumbs__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">\n <a class=\"ghcn-breadcrumbs__link{{#if ghostcnStyles.linkClass}} {{ghostcnStyles.linkClass}}{{/if}}\" href=\"{{primary_tag.url}}\" itemprop=\"item\"><span itemprop=\"name\">{{primary_tag.name}}</span></a>\n <meta itemprop=\"position\" content=\"2\" />\n </li>\n {{/if}}\n <li class=\"ghcn-breadcrumbs__item\" itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">\n <span class=\"ghcn-breadcrumbs__current{{#if ghostcnStyles.currentClass}} {{ghostcnStyles.currentClass}}{{/if}}\" aria-current=\"page\" itemprop=\"name\">{{#if current}}{{current}}{{else}}{{#if title}}{{title}}{{else}}{{#if name}}{{name}}{{else}}{{@site.title}}{{/if}}{{/if}}{{/if}}</span>\n <meta itemprop=\"position\" content=\"{{#if primary_tag}}3{{else}}2{{/if}}\" />\n </li>\n </ol>\n</nav>\n{{/with}}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "breadcrumbs.css",
|
|
34
|
+
"type": "style",
|
|
35
|
+
"target": "assets/css/components/breadcrumbs.css",
|
|
36
|
+
"content": ".ghcn-breadcrumbs { box-sizing: border-box; min-width: 0; margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); margin-block: 16px; }\n.ghcn-breadcrumbs *, .ghcn-breadcrumbs *::before, .ghcn-breadcrumbs *::after { box-sizing: border-box; }\n.ghcn-breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--ghcn-text-meta, 13px); color: var(--muted-foreground); }\n.ghcn-breadcrumbs:where([data-variant=\"pill\"]) .ghcn-breadcrumbs__list { display: inline-flex; padding: 5px 12px; border: 1px solid var(--border); border-radius: 9999px; background: var(--card); }\n.ghcn-breadcrumbs__item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }\n.ghcn-breadcrumbs__item + .ghcn-breadcrumbs__item::before { content: \"/\"; color: color-mix(in srgb, var(--muted-foreground) 55%, transparent); }\n.ghcn-breadcrumbs:where([data-variant=\"chevron\"]) .ghcn-breadcrumbs__item + .ghcn-breadcrumbs__item::before { content: \"›\"; font-size: 1.15em; line-height: 1; }\n.ghcn-breadcrumbs__link { color: inherit; text-decoration: none; }\n.ghcn-breadcrumbs__link:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }\n.ghcn-breadcrumbs__current { color: var(--foreground); font-weight: 600; }\n.ghcn-breadcrumbs:focus-visible, :where(.ghcn-breadcrumbs) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"gscan": {
|
|
40
|
+
"rules_satisfied": [
|
|
41
|
+
"GS010-PJ-VALID"
|
|
42
|
+
],
|
|
43
|
+
"notes": "Uses native Ghost @site.url, primary_tag, title, and name helpers with Schema.org microdata."
|
|
44
|
+
},
|
|
45
|
+
"styleSlots": {
|
|
46
|
+
"class": [
|
|
47
|
+
".ghcn-breadcrumbs"
|
|
48
|
+
],
|
|
49
|
+
"listClass": [
|
|
50
|
+
".ghcn-breadcrumbs__list"
|
|
51
|
+
],
|
|
52
|
+
"linkClass": [
|
|
53
|
+
".ghcn-breadcrumbs__link"
|
|
54
|
+
],
|
|
55
|
+
"currentClass": [
|
|
56
|
+
".ghcn-breadcrumbs__current"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"name": "button.css",
|
|
64
64
|
"type": "style",
|
|
65
65
|
"target": "assets/css/components/button.css",
|
|
66
|
-
"content": ".ghcn-ui-button { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-button, .ghcn-ui-button * { box-sizing: border-box; }\n.ghcn-ui-button:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-button:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-button:focus-visible, :where(.ghcn-ui-button) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-button { min-height: var(--ghcn-control-height, 40px); padding: var(--ghcn-control-padding, 8px 14px); border-radius: var(--ghcn-control-radius, var(--radius, 8px)); font-size: var(--ghcn-text-small, 14px); line-height: 1.25; display: inline-flex; align-items: center; justify-content: center; gap: var(--ghcn-control-gap, 8px); border: 1px solid transparent; background: var(--primary); color: var(--primary-foreground); font-weight: 600; text-decoration: none; cursor: pointer; }\n.ghcn-ui-button:hover { opacity: .9; }\n.ghcn-ui-button:where([data-size=\"sm\"]) { min-height: 34px; padding: 5px 11px; font-size: 13px; }\n.ghcn-ui-button:where([data-size=\"lg\"]) { min-height: 46px; padding: 10px 17px; font-size: 16px; }\n.ghcn-ui-button:where([data-variant=\"secondary\"]) { background: var(--secondary); color: var(--secondary-foreground); }\n.ghcn-ui-button:where([data-variant=\"outline\"]) { background: transparent; color: var(--foreground); border-color: var(--border); }\n.ghcn-ui-button:where([data-variant=\"ghost\"]), .ghcn-ui-button:where([data-variant=\"link\"]) { background: transparent; color: var(--foreground); }\n.ghcn-ui-button:where([data-variant=\"link\"]) { color: var(--primary); text-decoration: underline; }\n.ghcn-ui-button:where([data-variant=\"destructive\"]) { background: var(--destructive); color: var(--destructive-foreground); }\n.ghcn-ui-button:disabled, .ghcn-ui-button[aria-disabled=\"true\"] { opacity: .5; cursor: not-allowed; }\n"
|
|
66
|
+
"content": ".ghcn-ui-button { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-button, .ghcn-ui-button * { box-sizing: border-box; }\n.ghcn-ui-button:where([data-size=\"sm\"]) { font-size: 14px; }\n.ghcn-ui-button:where([data-size=\"lg\"]) { font-size: 18px; }\n.ghcn-ui-button:focus-visible, :where(.ghcn-ui-button) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-button { min-height: var(--ghcn-control-height, 40px); padding: var(--ghcn-control-padding, 8px 14px); border-radius: var(--ghcn-control-radius, var(--radius, 8px)); font-size: var(--ghcn-text-small, 14px); line-height: 1.25; display: inline-flex; align-items: center; justify-content: center; gap: var(--ghcn-control-gap, 8px); border: 1px solid transparent; background: var(--primary); color: var(--primary-foreground); font-weight: 600; text-decoration: none; cursor: pointer; transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease; }\n.ghcn-ui-button:hover { opacity: .9; }\n.ghcn-ui-button:where([data-size=\"sm\"]) { min-height: 34px; padding: 5px 11px; font-size: 13px; }\n.ghcn-ui-button:where([data-size=\"lg\"]) { min-height: 46px; padding: 10px 17px; font-size: 16px; }\n.ghcn-ui-button:where([data-variant=\"secondary\"]) { background: var(--secondary); color: var(--secondary-foreground); }\n.ghcn-ui-button:where([data-variant=\"outline\"]) { background: transparent; color: var(--foreground); border-color: var(--border); }\n.ghcn-ui-button:where([data-variant=\"outline\"]):hover { background: var(--muted); opacity: 1; }\n.ghcn-ui-button:where([data-variant=\"ghost\"]), .ghcn-ui-button:where([data-variant=\"link\"]) { background: transparent; color: var(--foreground); }\n.ghcn-ui-button:where([data-variant=\"ghost\"]):hover { background: var(--muted); opacity: 1; }\n.ghcn-ui-button:where([data-variant=\"link\"]) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }\n.ghcn-ui-button:where([data-variant=\"destructive\"]) { background: var(--destructive); color: var(--destructive-foreground); }\n.ghcn-ui-button:disabled, .ghcn-ui-button[aria-disabled=\"true\"] { opacity: .5; cursor: not-allowed; }\n@media (prefers-reduced-motion: reduce) { .ghcn-ui-button { transition: none; } }\n"
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
"styleSlots": {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "callout",
|
|
3
|
+
"type": "components:ui",
|
|
4
|
+
"description": "Editorial callout box with semantic note, tip, warning, and danger accents.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Semantic tone and icon.",
|
|
10
|
+
"options": [
|
|
11
|
+
"note",
|
|
12
|
+
"tip",
|
|
13
|
+
"warning",
|
|
14
|
+
"danger"
|
|
15
|
+
],
|
|
16
|
+
"default": "note"
|
|
17
|
+
},
|
|
18
|
+
"heading": {
|
|
19
|
+
"description": "Optional callout title."
|
|
20
|
+
},
|
|
21
|
+
"body": {
|
|
22
|
+
"description": "Escaped text content when not used as a partial block."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
{
|
|
27
|
+
"name": "callout.hbs",
|
|
28
|
+
"type": "partial",
|
|
29
|
+
"target": "partials/components/callout.hbs",
|
|
30
|
+
"content": "{{!-- Styling parameters: class, titleClass, contentClass --}}\n{{#with this as |ghostcnStyles|}}\n<aside class=\"ghcn-callout{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"tip\"}}tip{{else}}{{#match variant \"warning\"}}warning{{else}}{{#match variant \"danger\"}}danger{{else}}note{{/match}}{{/match}}{{/match}}\">\n <div class=\"ghcn-callout__icon-wrap\">\n {{#match variant \"tip\"}}<svg class=\"ghcn-callout__icon\" aria-hidden=\"true\" viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10 2.5a5 5 0 0 0-3 9c.6.5 1 1.2 1 2h4c0-.8.4-1.5 1-2a5 5 0 0 0-3-9Z\"/><path d=\"M8 16h4M8.75 18h2.5\"/></svg>{{else}}{{#match variant \"warning\"}}<svg class=\"ghcn-callout__icon\" aria-hidden=\"true\" viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8.7 3.4 2.3 14.5a1.5 1.5 0 0 0 1.3 2.25h12.8a1.5 1.5 0 0 0 1.3-2.25L11.3 3.4a1.5 1.5 0 0 0-2.6 0Z\"/><path d=\"M10 8v3.5M10 14h.01\"/></svg>{{else}}{{#match variant \"danger\"}}<svg class=\"ghcn-callout__icon\" aria-hidden=\"true\" viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"10\" cy=\"10\" r=\"7.5\"/><path d=\"m7.5 7.5 5 5M12.5 7.5l-5 5\"/></svg>{{else}}<svg class=\"ghcn-callout__icon\" aria-hidden=\"true\" viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"10\" cy=\"10\" r=\"7.5\"/><path d=\"M10 9v4.5M10 6.25h.01\"/></svg>{{/match}}{{/match}}{{/match}}\n </div>\n <div class=\"ghcn-callout__body\">\n {{#if heading}}<p class=\"ghcn-callout__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{heading}}</p>{{/if}}\n <div class=\"ghcn-callout__content{{#if ghostcnStyles.contentClass}} {{ghostcnStyles.contentClass}}{{/if}}\">{{#> @partial-block}}{{#if body}}<p>{{body}}</p>{{else}}<p>Highlight an important takeaway, editorial note, or reader tip.</p>{{/if}}{{/@partial-block}}</div>\n </div>\n</aside>\n{{/with}}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "callout.css",
|
|
34
|
+
"type": "style",
|
|
35
|
+
"target": "assets/css/components/callout.css",
|
|
36
|
+
"content": ".ghcn-callout { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-callout *, .ghcn-callout *::before, .ghcn-callout *::after { box-sizing: border-box; }\n.ghcn-callout:focus-visible, :where(.ghcn-callout) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-callout { display: flex; align-items: flex-start; gap: 12px; margin-block: 20px; padding: 16px 18px; border: 1px solid var(--border); border-inline-start: 3px solid var(--primary); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card); color: var(--card-foreground); }\n.ghcn-callout__icon-wrap { flex: 0 0 auto; display: inline-flex; margin-top: 2px; color: var(--primary); }\n.ghcn-callout:where([data-variant=\"tip\"]) { border-inline-start-color: var(--success, #15803d); background: color-mix(in srgb, var(--success, #15803d) 7%, var(--card)); }\n.ghcn-callout:where([data-variant=\"tip\"]) .ghcn-callout__icon-wrap { color: var(--success, #15803d); }\n.ghcn-callout:where([data-variant=\"warning\"]) { border-inline-start-color: #d97706; background: color-mix(in srgb, #d97706 8%, var(--card)); }\n.ghcn-callout:where([data-variant=\"warning\"]) .ghcn-callout__icon-wrap { color: #b45309; }\n:is(.dark, .dark-mode, [data-theme=\"dark\"]) .ghcn-callout:where([data-variant=\"warning\"]) .ghcn-callout__icon-wrap { color: #fbbf24; }\n.ghcn-callout:where([data-variant=\"danger\"]) { border-inline-start-color: var(--destructive); background: color-mix(in srgb, var(--destructive) 8%, var(--card)); }\n.ghcn-callout:where([data-variant=\"danger\"]) .ghcn-callout__icon-wrap { color: var(--destructive); }\n.ghcn-callout__body { min-width: 0; flex: 1; }\n.ghcn-callout__title { margin: 0 0 4px; font-size: var(--ghcn-text-small, 14px); font-weight: 700; color: var(--foreground); }\n.ghcn-callout__content { font-size: var(--ghcn-text-small, 14px); color: var(--muted-foreground); }\n.ghcn-callout__content > :first-child { margin-top: 0; }\n.ghcn-callout__content > :last-child { margin-bottom: 0; }\n"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"gscan": {
|
|
40
|
+
"rules_satisfied": [
|
|
41
|
+
"GS010-PJ-VALID"
|
|
42
|
+
],
|
|
43
|
+
"notes": "Self-contained Ghostcn UI primitive."
|
|
44
|
+
},
|
|
45
|
+
"styleSlots": {
|
|
46
|
+
"class": [
|
|
47
|
+
".ghcn-callout"
|
|
48
|
+
],
|
|
49
|
+
"titleClass": [
|
|
50
|
+
".ghcn-callout__title"
|
|
51
|
+
],
|
|
52
|
+
"contentClass": [
|
|
53
|
+
".ghcn-callout__content"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "checkbox",
|
|
3
|
+
"type": "components:ui",
|
|
4
|
+
"description": "Accessible native checkbox with inline and card variants, optional description, and crisp tick mark.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Inline checkbox or bordered selectable card.",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"card"
|
|
13
|
+
],
|
|
14
|
+
"default": "default"
|
|
15
|
+
},
|
|
16
|
+
"size": {
|
|
17
|
+
"description": "Checkbox scale.",
|
|
18
|
+
"options": [
|
|
19
|
+
"sm",
|
|
20
|
+
"default",
|
|
21
|
+
"lg"
|
|
22
|
+
],
|
|
23
|
+
"default": "default"
|
|
24
|
+
},
|
|
25
|
+
"label": {
|
|
26
|
+
"description": "Visible checkbox label.",
|
|
27
|
+
"default": "Send me weekly essays"
|
|
28
|
+
},
|
|
29
|
+
"description": {
|
|
30
|
+
"description": "Optional secondary description."
|
|
31
|
+
},
|
|
32
|
+
"name": {
|
|
33
|
+
"description": "Form field name."
|
|
34
|
+
},
|
|
35
|
+
"value": {
|
|
36
|
+
"description": "Optional checkbox value."
|
|
37
|
+
},
|
|
38
|
+
"checked": {
|
|
39
|
+
"description": "Boolean. Checked initially."
|
|
40
|
+
},
|
|
41
|
+
"required": {
|
|
42
|
+
"description": "Boolean required state."
|
|
43
|
+
},
|
|
44
|
+
"disabled": {
|
|
45
|
+
"description": "Boolean disabled state."
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
{
|
|
50
|
+
"name": "checkbox.hbs",
|
|
51
|
+
"type": "partial",
|
|
52
|
+
"target": "partials/components/checkbox.hbs",
|
|
53
|
+
"content": "{{!-- Styling parameters: class, inputClass, labelClass, descriptionClass --}}\n{{#with this as |ghostcnStyles|}}\n<label class=\"ghcn-ui-checkbox{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"card\"}}card{{else}}default{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\">\n <input class=\"ghcn-ui-checkbox__input{{#if ghostcnStyles.inputClass}} {{ghostcnStyles.inputClass}}{{/if}}\" type=\"checkbox\"{{#if id}} id=\"{{id}}\"{{/if}}{{#if name}} name=\"{{name}}\"{{/if}}{{#if value}} value=\"{{value}}\"{{/if}}{{#if checked}} checked{{/if}}{{#if required}} required{{/if}}{{#if disabled}} disabled{{/if}} />\n <span class=\"ghcn-ui-checkbox__copy\">\n <span class=\"ghcn-ui-checkbox__label{{#if ghostcnStyles.labelClass}} {{ghostcnStyles.labelClass}}{{/if}}\">{{#if label}}{{label}}{{else}}Send me weekly essays{{/if}}</span>\n {{#if description}}<span class=\"ghcn-ui-checkbox__description{{#if ghostcnStyles.descriptionClass}} {{ghostcnStyles.descriptionClass}}{{/if}}\">{{description}}</span>{{/if}}\n </span>\n</label>\n{{/with}}"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "checkbox.css",
|
|
57
|
+
"type": "style",
|
|
58
|
+
"target": "assets/css/components/checkbox.css",
|
|
59
|
+
"content": ".ghcn-ui-checkbox { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-ui-checkbox *, .ghcn-ui-checkbox *::before, .ghcn-ui-checkbox *::after { box-sizing: border-box; }\n.ghcn-ui-checkbox:focus-visible, :where(.ghcn-ui-checkbox) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-ui-checkbox { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--ghcn-text-small, 14px); }\n.ghcn-ui-checkbox:where([data-variant=\"card\"]) { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b); display: flex; width: 100%; padding: 14px 16px; transition: border-color 150ms ease, background-color 150ms ease; }\n.ghcn-ui-checkbox:where([data-variant=\"card\"]):has(:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--card)); }\n.ghcn-ui-checkbox:has(:disabled) { opacity: .55; cursor: not-allowed; }\n.ghcn-ui-checkbox__input { appearance: none; width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; border: 1.5px solid var(--input); border-radius: 5px; background: var(--background); display: inline-grid; place-content: center; cursor: inherit; transition: background-color 140ms ease, border-color 140ms ease; }\n.ghcn-ui-checkbox:where([data-size=\"sm\"]) .ghcn-ui-checkbox__input { width: 16px; height: 16px; flex-basis: 16px; }\n.ghcn-ui-checkbox:where([data-size=\"lg\"]) .ghcn-ui-checkbox__input { width: 21px; height: 21px; flex-basis: 21px; }\n.ghcn-ui-checkbox__input::after { content: \"\"; width: 5px; height: 9px; border: solid var(--primary-foreground); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform 120ms ease; }\n.ghcn-ui-checkbox__input:checked { background: var(--primary); border-color: var(--primary); }\n.ghcn-ui-checkbox__input:checked::after { transform: rotate(45deg) scale(1); }\n.ghcn-ui-checkbox__copy { display: grid; gap: 2px; min-width: 0; }\n.ghcn-ui-checkbox__label { font-weight: 600; color: var(--foreground); }\n.ghcn-ui-checkbox__description { color: var(--muted-foreground); font-size: 13px; }\n@media (prefers-reduced-motion: reduce) { .ghcn-ui-checkbox, .ghcn-ui-checkbox__input, .ghcn-ui-checkbox__input::after { transition: none; } }\n"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"gscan": {
|
|
63
|
+
"rules_satisfied": [
|
|
64
|
+
"GS010-PJ-VALID"
|
|
65
|
+
],
|
|
66
|
+
"notes": "Self-contained Ghostcn UI primitive."
|
|
67
|
+
},
|
|
68
|
+
"styleSlots": {
|
|
69
|
+
"class": [
|
|
70
|
+
".ghcn-ui-checkbox"
|
|
71
|
+
],
|
|
72
|
+
"inputClass": [
|
|
73
|
+
".ghcn-ui-checkbox__input"
|
|
74
|
+
],
|
|
75
|
+
"labelClass": [
|
|
76
|
+
".ghcn-ui-checkbox__label"
|
|
77
|
+
],
|
|
78
|
+
"descriptionClass": [
|
|
79
|
+
".ghcn-ui-checkbox__description"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "code-copy",
|
|
3
|
+
"type": "components:content",
|
|
4
|
+
"description": "Progressive-enhancement copy button and language header automatically added to Ghost post code blocks.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Header bar with language pill (default) or floating copy button (minimal).",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"minimal"
|
|
13
|
+
],
|
|
14
|
+
"default": "default"
|
|
15
|
+
},
|
|
16
|
+
"contentSelector": {
|
|
17
|
+
"description": "CSS selector for the article container whose <pre><code> blocks are enhanced.",
|
|
18
|
+
"default": ".ghcn-article-content"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
{
|
|
23
|
+
"name": "code-copy.hbs",
|
|
24
|
+
"type": "partial",
|
|
25
|
+
"target": "partials/components/code-copy.hbs",
|
|
26
|
+
"content": "{{!-- Styling parameters: class --}}\n{{#with this as |ghostcnStyles|}}\n<div class=\"ghcn-code-copy-hook{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-ghcn-code-copy data-variant=\"{{#match variant \"minimal\"}}minimal{{else}}default{{/match}}\" data-content-selector=\"{{#if contentSelector}}{{contentSelector}}{{else}}.ghcn-article-content{{/if}}\" hidden></div>\n{{/with}}"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "code-copy.css",
|
|
30
|
+
"type": "style",
|
|
31
|
+
"target": "assets/css/components/code-copy.css",
|
|
32
|
+
"content": ".ghcn-code-block { box-sizing: border-box; position: relative; margin-block: 24px; border: 1px solid var(--border); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); overflow: hidden; background: var(--card); color: var(--card-foreground); font-family: inherit; }\n.ghcn-code-block *, .ghcn-code-block *::before, .ghcn-code-block *::after { box-sizing: border-box; }\n.ghcn-code-block__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--secondary); font-size: 12px; }\n.ghcn-code-block__lang { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: 600; letter-spacing: 0.05em; color: var(--muted-foreground); }\n.ghcn-code-block__copy { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--ghcn-control-radius, var(--radius, 8px)); background: var(--background); color: var(--foreground); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }\n.ghcn-code-block__copy:hover { background: var(--muted); }\n.ghcn-code-block__copy[data-copied=\"true\"] { border-color: var(--primary); color: var(--primary); }\n.ghcn-code-block pre { margin: 0; padding: 16px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13.5px; line-height: 1.6; background: transparent; color: inherit; }\n.ghcn-code-block:where([data-variant=\"minimal\"]) .ghcn-code-block__bar { position: absolute; top: 8px; right: 8px; padding: 0; border: 0; background: transparent; }\n.ghcn-code-block:where([data-variant=\"minimal\"]) .ghcn-code-block__lang { display: none; }\n.ghcn-code-block:focus-visible, :where(.ghcn-code-block) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n@media (prefers-reduced-motion: reduce) { .ghcn-code-block__copy { transition: none; } }\n"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "code-copy.js",
|
|
36
|
+
"type": "js",
|
|
37
|
+
"target": "assets/js/components/code-copy.js",
|
|
38
|
+
"content": "/* ghostcn code-copy: injects language label and accessible copy button onto <pre><code> blocks. */\n(() => {\n function init() {\n document.querySelectorAll('[data-ghcn-code-copy]').forEach(marker => {\n if (marker.dataset.ghcnCodeCopyReady) return;\n marker.dataset.ghcnCodeCopyReady = 'true';\n const variant = marker.dataset.variant || 'default';\n let scope = document;\n try {\n const sel = marker.dataset.contentSelector || '.ghcn-article-content';\n const target = marker.parentElement?.querySelector(sel) || document.querySelector(sel);\n if (target) scope = target;\n } catch {}\n scope.querySelectorAll('pre').forEach(pre => {\n if (pre.closest('.ghcn-code-block')) return;\n const code = pre.querySelector('code');\n if (!code) return;\n const wrapper = document.createElement('div');\n wrapper.className = 'ghcn-code-block';\n wrapper.dataset.variant = variant;\n const bar = document.createElement('div');\n bar.className = 'ghcn-code-block__bar';\n const langMatch = (code.className || '').match(/language-([a-z0-9+#-]+)/i);\n const lang = document.createElement('span');\n lang.className = 'ghcn-code-block__lang';\n lang.textContent = langMatch ? langMatch[1].toUpperCase() : 'CODE';\n const btn = document.createElement('button');\n btn.type = 'button';\n btn.className = 'ghcn-code-block__copy';\n btn.textContent = 'Copy';\n btn.setAttribute('aria-label', 'Copy code');\n btn.addEventListener('click', async () => {\n try {\n await navigator.clipboard.writeText(code.textContent || '');\n btn.textContent = 'Copied';\n btn.dataset.copied = 'true';\n setTimeout(() => { btn.textContent = 'Copy'; delete btn.dataset.copied; }, 1800);\n } catch {\n btn.textContent = 'Failed';\n setTimeout(() => { btn.textContent = 'Copy'; }, 1800);\n }\n });\n bar.append(lang, btn);\n pre.parentNode.insertBefore(wrapper, pre);\n wrapper.append(bar, pre);\n });\n });\n }\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init, { once: true });\n else init();\n})();"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"gscan": {
|
|
42
|
+
"rules_satisfied": [
|
|
43
|
+
"GS010-PJ-VALID"
|
|
44
|
+
],
|
|
45
|
+
"notes": "Progressively enhances Ghost code cards with copy feedback; zero dependencies."
|
|
46
|
+
},
|
|
47
|
+
"styleSlots": {
|
|
48
|
+
"class": [
|
|
49
|
+
".ghcn-code-copy-hook"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "comments-section",
|
|
3
|
+
"type": "components:content",
|
|
4
|
+
"description": "Styled surface container wrapping Ghost native comments with heading and live comment count badge.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Container framing: default, minimal, or muted.",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"minimal",
|
|
13
|
+
"muted"
|
|
14
|
+
],
|
|
15
|
+
"default": "default"
|
|
16
|
+
},
|
|
17
|
+
"heading": {
|
|
18
|
+
"description": "Section heading text.",
|
|
19
|
+
"default": "Discussion"
|
|
20
|
+
},
|
|
21
|
+
"description": {
|
|
22
|
+
"description": "Optional editorial note above the comment thread."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
{
|
|
27
|
+
"name": "comments-section.hbs",
|
|
28
|
+
"type": "partial",
|
|
29
|
+
"target": "partials/components/comments-section.hbs",
|
|
30
|
+
"content": "{{!-- Styling parameters: class, titleClass, countClass --}}\n{{#with this as |ghostcnStyles|}}\n{{#if comments}}\n<section class=\"ghcn-comments{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" id=\"comments\" data-variant=\"{{#match variant \"minimal\"}}minimal{{else}}{{#match variant \"muted\"}}muted{{else}}default{{/match}}{{/match}}\" aria-label=\"{{#if heading}}{{heading}}{{else}}Discussion{{/if}}\">\n <header class=\"ghcn-comments__header\">\n <div class=\"ghcn-comments__heading-row\">\n <h2 class=\"ghcn-comments__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{#if heading}}{{heading}}{{else}}Discussion{{/if}}</h2>\n <span class=\"ghcn-comments__count{{#if ghostcnStyles.countClass}} {{ghostcnStyles.countClass}}{{/if}}\">{{comment_count empty=\"0 comments\" singular=\"1 comment\" plural=\"% comments\"}}</span>\n </div>\n {{#if description}}<p class=\"ghcn-comments__desc\">{{description}}</p>{{/if}}\n </header>\n <div class=\"ghcn-comments__frame\">\n {{comments title=\"\" count=false}}\n </div>\n</section>\n{{/if}}\n{{/with}}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "comments-section.css",
|
|
34
|
+
"type": "style",
|
|
35
|
+
"target": "assets/css/components/comments-section.css",
|
|
36
|
+
"content": ".ghcn-comments { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b); margin: var(--ghcn-section-space, clamp(24px, 4vw, 48px)) auto; width: min(100%, 760px); padding: clamp(20px, 3vw, 32px); font-family: inherit; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }\n.ghcn-comments *, .ghcn-comments *::before, .ghcn-comments *::after { box-sizing: border-box; }\n.ghcn-comments:where([data-variant=\"minimal\"]) { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 28px 0 0; box-shadow: none; }\n.ghcn-comments:where([data-variant=\"muted\"]) { background: var(--secondary); border-color: transparent; box-shadow: none; }\n.ghcn-comments__header { display: grid; gap: 6px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }\n.ghcn-comments__heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }\n.ghcn-comments__title { font-size: var(--ghcn-title-section, clamp(24px, 3vw, 32px)); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; margin: 0; font-size: 20px; }\n.ghcn-comments__count { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 9999px; border: 1px solid var(--border); background: var(--secondary); color: var(--muted-foreground); font-size: 12px; font-weight: 600; }\n.ghcn-comments:where([data-variant=\"muted\"]) .ghcn-comments__count { background: var(--background); }\n.ghcn-comments__desc { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.5; }\n.ghcn-comments__frame { min-width: 0; }\n.ghcn-comments__frame iframe { max-width: 100%; }\n.ghcn-comments-preview { padding: 20px; border: 1px dashed var(--border); border-radius: var(--ghcn-control-radius, var(--radius, 8px)); color: var(--muted-foreground); font-size: 13.5px; text-align: center; }\n.ghcn-comments:focus-visible, :where(.ghcn-comments) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"gscan": {
|
|
40
|
+
"rules_satisfied": [
|
|
41
|
+
"GS010-PJ-VALID"
|
|
42
|
+
],
|
|
43
|
+
"notes": "Wraps Ghost native {{comments}} and {{comment_count}} helpers inside {{#post}}."
|
|
44
|
+
},
|
|
45
|
+
"styleSlots": {
|
|
46
|
+
"class": [
|
|
47
|
+
".ghcn-comments"
|
|
48
|
+
],
|
|
49
|
+
"titleClass": [
|
|
50
|
+
".ghcn-comments__title"
|
|
51
|
+
],
|
|
52
|
+
"countClass": [
|
|
53
|
+
".ghcn-comments__count"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dialog",
|
|
3
|
+
"type": "components:ui",
|
|
4
|
+
"description": "Accessible native HTML dialog modal with backdrop click, Escape key close, and customizable content.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Dialog layout style.",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"centered",
|
|
13
|
+
"sheet"
|
|
14
|
+
],
|
|
15
|
+
"default": "default"
|
|
16
|
+
},
|
|
17
|
+
"triggerText": {
|
|
18
|
+
"description": "Label for the trigger button.",
|
|
19
|
+
"default": "Open dialog"
|
|
20
|
+
},
|
|
21
|
+
"heading": {
|
|
22
|
+
"description": "Dialog heading."
|
|
23
|
+
},
|
|
24
|
+
"description": {
|
|
25
|
+
"description": "Short subtitle under the heading."
|
|
26
|
+
},
|
|
27
|
+
"body": {
|
|
28
|
+
"description": "Escaped text body when not called as a partial block."
|
|
29
|
+
},
|
|
30
|
+
"actionText": {
|
|
31
|
+
"description": "Optional primary action label in the footer."
|
|
32
|
+
},
|
|
33
|
+
"actionHref": {
|
|
34
|
+
"description": "Optional trusted URL for the primary action."
|
|
35
|
+
},
|
|
36
|
+
"dataPortal": {
|
|
37
|
+
"description": "Optional Ghost Portal trigger for the primary action link."
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
{
|
|
42
|
+
"name": "dialog.hbs",
|
|
43
|
+
"type": "partial",
|
|
44
|
+
"target": "partials/components/dialog.hbs",
|
|
45
|
+
"content": "{{!-- Styling parameters: class, triggerClass, surfaceClass, titleClass, contentClass --}}\n{{#with this as |ghostcnStyles|}}\n<div class=\"ghcn-dialog-root{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-ghcn-dialog data-variant=\"{{#match variant \"centered\"}}centered{{else}}{{#match variant \"sheet\"}}sheet{{else}}default{{/match}}{{/match}}\">\n <button type=\"button\" class=\"ghcn-dialog__trigger{{#if ghostcnStyles.triggerClass}} {{ghostcnStyles.triggerClass}}{{/if}} ghcn-button ghcn-button--outline\" data-dialog-open>{{#if triggerText}}{{triggerText}}{{else}}Open dialog{{/if}}</button>\n <dialog class=\"ghcn-dialog\" aria-label=\"{{#if heading}}{{heading}}{{else}}Dialog{{/if}}\">\n <div class=\"ghcn-dialog__surface{{#if ghostcnStyles.surfaceClass}} {{ghostcnStyles.surfaceClass}}{{/if}}\">\n <div class=\"ghcn-dialog__header\">\n <div class=\"ghcn-dialog__headings\">\n {{#if heading}}<h3 class=\"ghcn-dialog__title{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{heading}}</h3>{{/if}}\n {{#if description}}<p class=\"ghcn-dialog__description\">{{description}}</p>{{/if}}\n </div>\n <button type=\"button\" class=\"ghcn-dialog__close\" data-dialog-close aria-label=\"Close dialog\">\n <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\"><path d=\"M4 4l8 8M12 4l-8 8\"/></svg>\n </button>\n </div>\n <div class=\"ghcn-dialog__content{{#if ghostcnStyles.contentClass}} {{ghostcnStyles.contentClass}}{{/if}}\">{{#> @partial-block}}{{#if body}}<p>{{body}}</p>{{/if}}{{/@partial-block}}</div>\n {{#if actionText}}\n <div class=\"ghcn-dialog__footer\">\n <button type=\"button\" class=\"ghcn-button ghcn-button--outline\" data-dialog-close>Cancel</button>\n {{#if actionHref}}<a class=\"ghcn-button\" href=\"{{actionHref}}\"{{#if dataPortal}} data-portal=\"{{dataPortal}}\"{{/if}}>{{actionText}}</a>{{else}}<button type=\"button\" class=\"ghcn-button\" data-dialog-close>{{actionText}}</button>{{/if}}\n </div>\n {{/if}}\n </div>\n </dialog>\n</div>\n{{/with}}"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "dialog.css",
|
|
49
|
+
"type": "style",
|
|
50
|
+
"target": "assets/css/components/dialog.css",
|
|
51
|
+
"content": ".ghcn-dialog-root { box-sizing: border-box; font-family: inherit; font-size: var(--ghcn-text-body, 16px); line-height: 1.5; color: var(--foreground); }\n.ghcn-dialog-root *, .ghcn-dialog-root *::before, .ghcn-dialog-root *::after { box-sizing: border-box; }\n.ghcn-dialog-root:focus-visible, :where(.ghcn-dialog-root) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n.ghcn-dialog-root { display: inline-block; }\n.ghcn-dialog { padding: 0; border: 0; background: transparent; color: var(--card-foreground); max-width: min(100% - 32px, 480px); width: 100%; overflow: visible; }\n.ghcn-dialog::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); }\n.ghcn-dialog__surface { box-sizing: border-box; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--border, #e4e4e7); border-radius: var(--ghcn-panel-radius, min(var(--radius, 8px), 24px)); background: var(--card, #fff); color: var(--card-foreground, #09090b); padding: var(--ghcn-panel-padding, clamp(16px, 3vw, 24px)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22); }\n.ghcn-dialog-root:where([data-variant=\"centered\"]) .ghcn-dialog__surface { text-align: center; }\n.ghcn-dialog-root:where([data-variant=\"centered\"]) .ghcn-dialog__header { justify-content: center; position: relative; }\n.ghcn-dialog-root:where([data-variant=\"centered\"]) .ghcn-dialog__close { position: absolute; right: 0; top: 0; }\n.ghcn-dialog-root:where([data-variant=\"centered\"]) .ghcn-dialog__footer { justify-content: center; }\n.ghcn-dialog-root:where([data-variant=\"sheet\"]) .ghcn-dialog { margin: auto 0 0 auto; max-width: min(100%, 420px); height: 100%; max-height: 100dvh; }\n.ghcn-dialog-root:where([data-variant=\"sheet\"]) .ghcn-dialog__surface { height: 100%; border-radius: 0; border-right: 0; border-block: 0; display: flex; flex-direction: column; }\n.ghcn-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }\n.ghcn-dialog__headings { min-width: 0; }\n.ghcn-dialog__title { font-size: var(--ghcn-title-card, 20px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; color: inherit; margin: 0; }\n.ghcn-dialog__description { margin: 4px 0 0; color: var(--muted-foreground); font-size: var(--ghcn-text-small, 14px); }\n.ghcn-dialog__close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid transparent; border-radius: var(--ghcn-control-radius, var(--radius, 8px)); background: transparent; color: var(--muted-foreground); cursor: pointer; }\n.ghcn-dialog__close:hover { background: var(--muted); color: var(--foreground); }\n.ghcn-dialog__content { font-size: var(--ghcn-text-small, 14px); color: var(--muted-foreground); }\n.ghcn-dialog__content:empty { display: none; }\n.ghcn-dialog__content > :first-child { margin-top: 0; }\n.ghcn-dialog__content > :last-child { margin-bottom: 0; }\n.ghcn-dialog__footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }\n"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "dialog.js",
|
|
55
|
+
"type": "js",
|
|
56
|
+
"target": "assets/js/components/dialog.js",
|
|
57
|
+
"content": "/* ghostcn dialog: native HTML <dialog> modal with backdrop click and Escape support. */\n(() => {\n function init() {\n document.querySelectorAll('[data-ghcn-dialog]').forEach(wrapper => {\n if (wrapper.dataset.ghcnDialogReady) return;\n const modal = wrapper.querySelector('dialog');\n const openBtn = wrapper.querySelector('[data-dialog-open]');\n if (!modal || !openBtn) return;\n wrapper.dataset.ghcnDialogReady = 'true';\n openBtn.addEventListener('click', () => {\n if (typeof modal.showModal === 'function') modal.showModal();\n else modal.setAttribute('open', '');\n });\n wrapper.querySelectorAll('[data-dialog-close]').forEach(btn => {\n btn.addEventListener('click', () => modal.close());\n });\n modal.addEventListener('click', event => {\n if (event.target === modal) modal.close();\n });\n });\n }\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', init, { once: true });\n else init();\n})();"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"gscan": {
|
|
61
|
+
"rules_satisfied": [
|
|
62
|
+
"GS010-PJ-VALID"
|
|
63
|
+
],
|
|
64
|
+
"notes": "Self-contained Ghostcn UI primitive."
|
|
65
|
+
},
|
|
66
|
+
"styleSlots": {
|
|
67
|
+
"class": [
|
|
68
|
+
".ghcn-dialog-root"
|
|
69
|
+
],
|
|
70
|
+
"triggerClass": [
|
|
71
|
+
".ghcn-dialog__trigger"
|
|
72
|
+
],
|
|
73
|
+
"surfaceClass": [
|
|
74
|
+
".ghcn-dialog__surface"
|
|
75
|
+
],
|
|
76
|
+
"titleClass": [
|
|
77
|
+
".ghcn-dialog__title"
|
|
78
|
+
],
|
|
79
|
+
"contentClass": [
|
|
80
|
+
".ghcn-dialog__content"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|