ghostcn 1.6.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/registry/components/account-card.json +57 -0
- package/dist/registry/components/author-card.json +1 -1
- package/dist/registry/components/author-stack.json +63 -0
- package/dist/registry/components/back-to-top.json +72 -0
- 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/hero.json +89 -0
- package/dist/registry/components/image-lightbox.json +44 -0
- package/dist/registry/components/magazine-grid.json +62 -0
- package/dist/registry/components/mobile-dock.json +69 -0
- package/dist/registry/components/newsletter-form.json +1 -1
- package/dist/registry/components/pagination.json +1 -1
- package/dist/registry/components/post-card.json +1 -1
- package/dist/registry/components/post-grid.json +1 -1
- package/dist/registry/components/post-header.json +1 -1
- package/dist/registry/components/post-list.json +62 -0
- 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/related-posts.json +1 -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/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/tabs.json +81 -0
- package/dist/registry/components/tag-bar.json +63 -0
- package/dist/registry/components/textarea.json +95 -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/index.json +389 -0
- package/dist/templates/playground/playground.js +1 -1
- package/dist/utils/playground-server.js +8 -2
- package/dist/utils/preview-renderer.d.ts +72 -0
- package/dist/utils/preview-renderer.js +51 -5
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "account-card",
|
|
3
|
+
"type": "components:members",
|
|
4
|
+
"description": "Signed-in Ghost member profile panel with tier badge, Portal management links, sign-out action, and visitor sign-in fallback.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Card framing: default, compact, or minimal.",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"compact",
|
|
13
|
+
"minimal"
|
|
14
|
+
],
|
|
15
|
+
"default": "default"
|
|
16
|
+
},
|
|
17
|
+
"heading": {
|
|
18
|
+
"description": "Visitor fallback heading when no member is signed in.",
|
|
19
|
+
"default": "Sign in to your account"
|
|
20
|
+
},
|
|
21
|
+
"description": {
|
|
22
|
+
"description": "Visitor fallback description when no member is signed in."
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
{
|
|
27
|
+
"name": "account-card.hbs",
|
|
28
|
+
"type": "partial",
|
|
29
|
+
"target": "partials/components/account-card.hbs",
|
|
30
|
+
"content": "{{!-- Styling parameters: class, titleClass, buttonClass --}}\n{{#with this as |ghostcnStyles|}}\n{{#if @site.members_enabled}}\n<section class=\"ghcn-account-card{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"compact\"}}compact{{else}}{{#match variant \"minimal\"}}minimal{{else}}default{{/match}}{{/match}}\" aria-label=\"{{#if heading}}{{heading}}{{else}}Member account{{/if}}\">\n {{#if @member}}\n <div class=\"ghcn-account-card__top\">\n <div class=\"ghcn-account-card__avatar\" aria-hidden=\"true\">\n {{#if @member.avatar_image}}\n <img src=\"{{@member.avatar_image}}\" alt=\"\" />\n {{else}}\n <span>{{#if @member.name}}{{@member.name.[0]}}{{else}}M{{/if}}</span>\n {{/if}}\n </div>\n <div class=\"ghcn-account-card__identity\">\n <div class=\"ghcn-account-card__name-row\">\n <h3 class=\"ghcn-account-card__name{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{#if @member.name}}{{@member.name}}{{else}}Member{{/if}}</h3>\n <span class=\"ghcn-account-card__badge{{#if @member.paid}} is-paid{{/if}}\">{{#if @member.paid}}Paid member{{else}}Free member{{/if}}</span>\n </div>\n {{#if @member.email}}<p class=\"ghcn-account-card__email\">{{@member.email}}</p>{{/if}}\n </div>\n </div>\n <div class=\"ghcn-account-card__actions\">\n {{#if @member.paid}}\n <a class=\"ghcn-account-card__btn{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-account-card__btn--primary\" href=\"#/portal/account/plans\" data-portal=\"account/plans\">Manage plan</a>\n {{else}}\n {{#if @site.paid_members_enabled}}\n <a class=\"ghcn-account-card__btn{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-account-card__btn--primary\" href=\"#/portal/account/plans\" data-portal=\"account/plans\">Upgrade membership</a>\n {{/if}}\n {{/if}}\n <a class=\"ghcn-account-card__btn{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-account-card__btn--outline\" href=\"#/portal/account\" data-portal=\"account\">Account settings</a>\n <button type=\"button\" class=\"ghcn-account-card__btn{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-account-card__btn--ghost\" data-members-signout>Sign out</button>\n </div>\n {{else}}\n <div class=\"ghcn-account-card__visitor\">\n <h3 class=\"ghcn-account-card__name{{#if ghostcnStyles.titleClass}} {{ghostcnStyles.titleClass}}{{/if}}\">{{#if heading}}{{heading}}{{else}}Sign in to your account{{/if}}</h3>\n <p class=\"ghcn-account-card__email\">{{#if description}}{{description}}{{else}}Manage your newsletter preferences, billing plan, and member-only access.{{/if}}</p>\n <div class=\"ghcn-account-card__actions\">\n <a class=\"ghcn-account-card__btn{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-account-card__btn--primary\" href=\"#/portal/signin\" data-portal=\"signin\">Sign in</a>\n {{#unless @site.members_invite_only}}{{#if @site.allow_self_signup}}\n <a class=\"ghcn-account-card__btn{{#if ghostcnStyles.buttonClass}} {{ghostcnStyles.buttonClass}}{{/if}} ghcn-account-card__btn--outline\" href=\"#/portal/signup\" data-portal=\"signup\">Create free account</a>\n {{/if}}{{/unless}}\n </div>\n </div>\n {{/if}}\n</section>\n{{/if}}\n{{/with}}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "account-card.css",
|
|
34
|
+
"type": "style",
|
|
35
|
+
"target": "assets/css/components/account-card.css",
|
|
36
|
+
"content": ".ghcn-account-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); margin-block: var(--ghcn-section-space, clamp(24px, 4vw, 48px)); width: min(100%, 560px); padding: var(--ghcn-panel-padding, clamp(16px, 3vw, 24px)); display: grid; gap: 18px; font-family: inherit; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }\n.ghcn-account-card *, .ghcn-account-card *::before, .ghcn-account-card *::after { box-sizing: border-box; }\n.ghcn-account-card:where([data-variant=\"compact\"]) { padding: 16px 18px; gap: 14px; }\n.ghcn-account-card:where([data-variant=\"minimal\"]) { background: transparent; border: 0; border-block: 1px solid var(--border); border-radius: 0; padding: 18px 0; box-shadow: none; }\n.ghcn-account-card__top { display: flex; align-items: center; gap: 14px; min-width: 0; }\n.ghcn-account-card__avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 9999px; overflow: hidden; display: grid; place-items: center; background: var(--secondary); color: var(--foreground); border: 1px solid var(--border); font-size: 18px; font-weight: 700; text-transform: uppercase; }\n.ghcn-account-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }\n.ghcn-account-card__identity { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }\n.ghcn-account-card__name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }\n.ghcn-account-card__name { font-size: var(--ghcn-title-card, 20px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; color: inherit; margin: 0; font-size: 17px; }\n.ghcn-account-card__badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 9999px; background: var(--secondary); color: var(--muted-foreground); font-size: 11.5px; font-weight: 600; }\n.ghcn-account-card__badge.is-paid { background: color-mix(in srgb, var(--primary) 13%, var(--background)); color: var(--primary); }\n.ghcn-account-card__email { margin: 0; color: var(--muted-foreground); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }\n.ghcn-account-card__visitor { display: grid; gap: 8px; }\n.ghcn-account-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }\n.ghcn-account-card__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--ghcn-control-radius, var(--radius, 8px)); font: inherit; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease; }\n.ghcn-account-card__btn--primary { background: var(--primary); color: var(--primary-foreground); }\n.ghcn-account-card__btn--primary:hover { opacity: .9; }\n.ghcn-account-card__btn--outline { background: var(--background); color: var(--foreground); border-color: var(--border); }\n.ghcn-account-card__btn--outline:hover { background: var(--secondary); }\n.ghcn-account-card__btn--ghost { background: transparent; color: var(--muted-foreground); }\n.ghcn-account-card__btn--ghost:hover { background: var(--secondary); color: var(--foreground); }\n.ghcn-account-card:focus-visible, :where(.ghcn-account-card) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"gscan": {
|
|
40
|
+
"rules_satisfied": [
|
|
41
|
+
"GS010-PJ-VALID",
|
|
42
|
+
"GS050-MEMBERS-SIGNOUT"
|
|
43
|
+
],
|
|
44
|
+
"notes": "Uses Ghost native @member properties, data-portal routes, and data-members-signout."
|
|
45
|
+
},
|
|
46
|
+
"styleSlots": {
|
|
47
|
+
"class": [
|
|
48
|
+
".ghcn-account-card"
|
|
49
|
+
],
|
|
50
|
+
"titleClass": [
|
|
51
|
+
".ghcn-account-card__name"
|
|
52
|
+
],
|
|
53
|
+
"buttonClass": [
|
|
54
|
+
".ghcn-account-card__btn"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"name": "author-card.css",
|
|
16
16
|
"type": "style",
|
|
17
17
|
"target": "assets/css/components/author-card.css",
|
|
18
|
-
"content": "/* ghostcn: Author Card Styles */\n.gh-author-card {\n 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);\n font-family: inherit;\n font-size: var(--ghcn-text-body, 16px);\n line-height: 1.5;\n isolation: isolate;\n padding:
|
|
18
|
+
"content": "/* ghostcn: Author Card Styles */\n.gh-author-card {\n 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);\n font-family: inherit;\n font-size: var(--ghcn-text-body, 16px);\n line-height: 1.5;\n isolation: isolate;\n padding: 24px 28px;\n margin: var(--ghcn-section-space, clamp(24px, 4vw, 48px)) auto;\n width: min(100%, 760px);\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 20px;\n}\n\n.gh-author-card *,\n.gh-author-card *::before,\n.gh-author-card *::after {\n box-sizing: border-box;\n}\n\n@media (min-width: 640px) {\n .gh-author-card {\n flex-direction: row;\n align-items: center;\n }\n}\n\n.gh-author-avatar {\n width: 64px;\n height: 64px;\n flex: 0 0 64px;\n border-radius: 9999px;\n object-fit: cover;\n border: 1px solid var(--border, #e4e4e7);\n}\n\n.gh-author-avatar-fallback {\n width: 64px;\n height: 64px;\n flex: 0 0 64px;\n border-radius: 9999px;\n background-color: var(--secondary, #f4f4f5);\n color: var(--foreground, #09090b);\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 22px;\n font-weight: 700;\n border: 1px solid var(--border, #e4e4e7);\n}\n\n.gh-author-details {\n flex: 1;\n min-width: 0;\n text-align: center;\n}\n\n@media (min-width: 640px) {\n .gh-author-details {\n text-align: left;\n }\n}\n\n.gh-author-name {\n font-size: var(--ghcn-title-card, 20px); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; color: inherit;\n margin: 0;\n}\n\n.gh-author-name a {\n color: inherit;\n text-decoration: none;\n transition: color 0.15s ease;\n}\n\n.gh-author-name:hover {\n color: var(--primary, var(--ghost-accent-color, #18181b));\n}\n\n.gh-author-bio {\n color: var(--muted-foreground, #71717a);\n font-size: 14px;\n line-height: 1.58;\n margin: 6px 0 10px;\n}\n\n.gh-author-meta {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: 14px;\n font-size: 12.5px;\n color: var(--muted-foreground, #71717a);\n}\n.gh-author-meta:empty { display: none; }\n\n.gh-author-meta a {\n color: var(--primary, var(--ghost-accent-color, #18181b));\n text-decoration: none;\n}\n\n.gh-author-meta a:hover {\n text-decoration: underline;\n}\n\n.gh-author-heading { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; margin-bottom: 8px; }\n.gh-author-post-count { border-radius: 9999px; padding: 4px 10px; background: var(--muted); color: var(--muted-foreground); font-size: 12px; font-weight: 500; }\n.gh-author-location { display: inline-flex; align-items: center; gap: 4px; }\n@media (min-width: 640px) { .gh-author-heading { flex-direction: row; flex-wrap: wrap; align-items: center; } .gh-author-meta { justify-content: flex-start; } }\n.gh-author-card:focus-visible, :where(.gh-author-card) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n"
|
|
19
19
|
}
|
|
20
20
|
],
|
|
21
21
|
"gscan": {
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "author-stack",
|
|
3
|
+
"type": "components:content",
|
|
4
|
+
"description": "Overlapping multi-author avatar stack with linked names and optional date/reading time.",
|
|
5
|
+
"dependencies": [],
|
|
6
|
+
"ghost_version": ">=5.0.0",
|
|
7
|
+
"parameters": {
|
|
8
|
+
"variant": {
|
|
9
|
+
"description": "Stacked info or single-line compact byline.",
|
|
10
|
+
"options": [
|
|
11
|
+
"default",
|
|
12
|
+
"compact"
|
|
13
|
+
],
|
|
14
|
+
"default": "default"
|
|
15
|
+
},
|
|
16
|
+
"size": {
|
|
17
|
+
"description": "Avatar size.",
|
|
18
|
+
"options": [
|
|
19
|
+
"sm",
|
|
20
|
+
"default",
|
|
21
|
+
"lg"
|
|
22
|
+
],
|
|
23
|
+
"default": "default"
|
|
24
|
+
},
|
|
25
|
+
"hideMeta": {
|
|
26
|
+
"description": "Boolean. Hide date and reading time."
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
{
|
|
31
|
+
"name": "author-stack.hbs",
|
|
32
|
+
"type": "partial",
|
|
33
|
+
"target": "partials/components/author-stack.hbs",
|
|
34
|
+
"content": "{{!-- Styling parameters: class, avatarClass, namesClass, metaClass --}}\n{{#with this as |ghostcnStyles|}}\n<div class=\"ghcn-author-stack{{#if ghostcnStyles.class}} {{ghostcnStyles.class}}{{/if}}\" data-variant=\"{{#match variant \"compact\"}}compact{{else}}default{{/match}}\" data-size=\"{{#match size \"sm\"}}sm{{else}}{{#match size \"lg\"}}lg{{else}}default{{/match}}{{/match}}\">\n <div class=\"ghcn-author-stack__avatars\" aria-hidden=\"true\">\n {{#if authors}}\n {{#foreach authors}}\n <span class=\"ghcn-author-stack__avatar{{#if ghostcnStyles.avatarClass}} {{ghostcnStyles.avatarClass}}{{/if}}\">\n {{#if profile_image}}<img src=\"{{img_url profile_image size=\"xs\"}}\" alt=\"\" loading=\"lazy\" />{{else}}<span>{{name.[0]}}</span>{{/if}}\n </span>\n {{/foreach}}\n {{else}}{{#primary_author}}\n <span class=\"ghcn-author-stack__avatar{{#if ghostcnStyles.avatarClass}} {{ghostcnStyles.avatarClass}}{{/if}}\">\n {{#if profile_image}}<img src=\"{{img_url profile_image size=\"xs\"}}\" alt=\"\" loading=\"lazy\" />{{else}}<span>{{name.[0]}}</span>{{/if}}\n </span>\n {{/primary_author}}{{/if}}\n </div>\n <div class=\"ghcn-author-stack__info\">\n <div class=\"ghcn-author-stack__names{{#if ghostcnStyles.namesClass}} {{ghostcnStyles.namesClass}}{{/if}}\">\n {{#if authors}}\n {{#foreach authors}}<a href=\"{{url}}\">{{name}}</a>{{#unless @last}}<span class=\"ghcn-author-stack__sep\">, </span>{{/unless}}{{/foreach}}\n {{else}}{{#primary_author}}\n <a href=\"{{url}}\">{{name}}</a>\n {{/primary_author}}{{/if}}\n </div>\n {{#unless hideMeta}}\n <div class=\"ghcn-author-stack__meta{{#if ghostcnStyles.metaClass}} {{ghostcnStyles.metaClass}}{{/if}}\">\n <time datetime=\"{{date format=\"YYYY-MM-DD\"}}\">{{date format=\"D MMM YYYY\"}}</time>\n <span aria-hidden=\"true\">•</span>\n <span>{{reading_time}}</span>\n </div>\n {{/unless}}\n </div>\n</div>\n{{/with}}"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "author-stack.css",
|
|
38
|
+
"type": "style",
|
|
39
|
+
"target": "assets/css/components/author-stack.css",
|
|
40
|
+
"content": ".ghcn-author-stack { box-sizing: border-box; display: inline-flex; align-items: center; gap: 12px; color: var(--foreground); font-family: inherit; font-size: var(--ghcn-text-small, 14px); line-height: 1.35; }\n.ghcn-author-stack *, .ghcn-author-stack *::before, .ghcn-author-stack *::after { box-sizing: border-box; }\n.ghcn-author-stack__avatars { display: inline-flex; align-items: center; }\n.ghcn-author-stack__avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9999px; border: 2px solid var(--background); background: var(--secondary); color: var(--secondary-foreground); font-size: 13px; font-weight: 700; text-transform: uppercase; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }\n.ghcn-author-stack__avatar + .ghcn-author-stack__avatar { margin-left: -10px; }\n.ghcn-author-stack__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }\n.ghcn-author-stack:where([data-size=\"sm\"]) .ghcn-author-stack__avatar { width: 28px; height: 28px; font-size: 11px; }\n.ghcn-author-stack:where([data-size=\"sm\"]) .ghcn-author-stack__avatar + .ghcn-author-stack__avatar { margin-left: -8px; }\n.ghcn-author-stack:where([data-size=\"lg\"]) .ghcn-author-stack__avatar { width: 46px; height: 46px; font-size: 15px; }\n.ghcn-author-stack__info { display: grid; gap: 2px; min-width: 0; }\n.ghcn-author-stack__names { font-weight: 600; color: var(--foreground); }\n.ghcn-author-stack__names a { color: inherit; text-decoration: none; }\n.ghcn-author-stack__names a:hover { text-decoration: underline; text-underline-offset: 3px; }\n.ghcn-author-stack__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: var(--ghcn-text-meta, 13px); }\n.ghcn-author-stack:where([data-variant=\"compact\"]) .ghcn-author-stack__info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }\n.ghcn-author-stack:focus-visible, :where(.ghcn-author-stack) :focus-visible { outline: 2px solid var(--ring, currentColor); outline-offset: 2px; }\n"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"gscan": {
|
|
44
|
+
"rules_satisfied": [
|
|
45
|
+
"GS010-PJ-VALID"
|
|
46
|
+
],
|
|
47
|
+
"notes": "Uses native Ghost content and site helpers."
|
|
48
|
+
},
|
|
49
|
+
"styleSlots": {
|
|
50
|
+
"class": [
|
|
51
|
+
".ghcn-author-stack"
|
|
52
|
+
],
|
|
53
|
+
"avatarClass": [
|
|
54
|
+
".ghcn-author-stack__avatar"
|
|
55
|
+
],
|
|
56
|
+
"namesClass": [
|
|
57
|
+
".ghcn-author-stack__names"
|
|
58
|
+
],
|
|
59
|
+
"metaClass": [
|
|
60
|
+
".ghcn-author-stack__meta"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -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,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
|
+
}
|