@goldencomm/create-baseline 0.0.1 → 0.1.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/README.md +18 -79
- package/index.mjs +175 -283
- package/package.json +13 -30
- package/templates/ci/bitbucket-pipelines.yml +29 -0
- package/templates/code-connect/accordion-item.figma.ts +45 -0
- package/templates/code-connect/accordion.figma.ts +40 -0
- package/templates/code-connect/alert.figma.ts +378 -0
- package/templates/code-connect/avatar-badge.figma.ts +14 -0
- package/templates/code-connect/avatar-group-count.figma.ts +16 -0
- package/templates/code-connect/avatar-group.figma.ts +30 -0
- package/templates/code-connect/avatar.figma.ts +34 -0
- package/templates/code-connect/badge.figma.ts +383 -0
- package/templates/code-connect/breadcrumb-item.figma.ts +23 -0
- package/templates/code-connect/breadcrumb-separator.figma.ts +12 -0
- package/templates/code-connect/breadcrumb.figma.ts +32 -0
- package/templates/code-connect/button-group.figma.ts +28 -0
- package/templates/code-connect/button.figma.ts +408 -0
- package/templates/code-connect/card.figma.ts +74 -0
- package/templates/code-connect/carousel.figma.ts +27 -0
- package/templates/code-connect/checkbox.figma.ts +34 -0
- package/templates/code-connect/columns-1.figma.ts +43 -0
- package/templates/code-connect/columns-2.figma.ts +49 -0
- package/templates/code-connect/columns-3.figma.ts +45 -0
- package/templates/code-connect/columns-4.figma.ts +46 -0
- package/templates/code-connect/container.figma.ts +42 -0
- package/templates/code-connect/dialog.figma.ts +72 -0
- package/templates/code-connect/drawer.figma.ts +69 -0
- package/templates/code-connect/dropdown-menu-checkbox-item.figma.ts +19 -0
- package/templates/code-connect/dropdown-menu-item.figma.ts +25 -0
- package/templates/code-connect/dropdown-menu-label.figma.ts +16 -0
- package/templates/code-connect/dropdown-menu-radio-item.figma.ts +19 -0
- package/templates/code-connect/dropdown-menu-separator.figma.ts +12 -0
- package/templates/code-connect/dropdown-menu-sub-trigger.figma.ts +22 -0
- package/templates/code-connect/dropdown-menu.figma.ts +44 -0
- package/templates/code-connect/field-horizontal.figma.ts +73 -0
- package/templates/code-connect/field.figma.ts +68 -0
- package/templates/code-connect/hover-card.figma.ts +41 -0
- package/templates/code-connect/icon-button.figma.ts +382 -0
- package/templates/code-connect/input-group.figma.ts +51 -0
- package/templates/code-connect/input-otp.figma.ts +40 -0
- package/templates/code-connect/input.figma.ts +42 -0
- package/templates/code-connect/item-group.figma.ts +30 -0
- package/templates/code-connect/item.figma.ts +50 -0
- package/templates/code-connect/kbd.figma.ts +16 -0
- package/templates/code-connect/media.figma.ts +35 -0
- package/templates/code-connect/meter.figma.ts +31 -0
- package/templates/code-connect/native-select.figma.ts +36 -0
- package/templates/code-connect/navigation-menu-link.figma.ts +33 -0
- package/templates/code-connect/navigation-menu-trigger.figma.ts +28 -0
- package/templates/code-connect/navigation-menu.figma.ts +30 -0
- package/templates/code-connect/pagination-ellipsis.figma.ts +11 -0
- package/templates/code-connect/pagination-link.figma.ts +24 -0
- package/templates/code-connect/pagination-next.figma.ts +17 -0
- package/templates/code-connect/pagination-previous.figma.ts +17 -0
- package/templates/code-connect/pagination.figma.ts +33 -0
- package/templates/code-connect/panel.figma.ts +40 -0
- package/templates/code-connect/popover.figma.ts +58 -0
- package/templates/code-connect/progress.figma.ts +34 -0
- package/templates/code-connect/radio.figma.ts +29 -0
- package/templates/code-connect/section.figma.ts +42 -0
- package/templates/code-connect/select.figma.ts +30 -0
- package/templates/code-connect/sheet.figma.ts +70 -0
- package/templates/code-connect/sidebar-menu-button.figma.ts +36 -0
- package/templates/code-connect/sidebar.figma.ts +44 -0
- package/templates/code-connect/spinner.figma.ts +13 -0
- package/templates/code-connect/switch.figma.ts +32 -0
- package/templates/code-connect/table-cell.figma.ts +21 -0
- package/templates/code-connect/table.figma.ts +62 -0
- package/templates/code-connect/tabs-trigger.figma.ts +369 -0
- package/templates/code-connect/tabs.figma.ts +28 -0
- package/templates/code-connect/textarea.figma.ts +32 -0
- package/templates/code-connect/toggle-group.figma.ts +24 -0
- package/templates/code-connect/toggle.figma.ts +385 -0
- package/templates/code-connect/tooltip.figma.ts +29 -0
- package/templates/next/app/globals.css +13 -12
- package/templates/next/app/page.tsx +38 -26
- package/templates/next/public/placeholder.svg +1 -0
- package/templates/shopify/.gitattributes +1 -0
- package/templates/shopify/.shopifyignore +23 -0
- package/templates/shopify/.theme-check.yml +1 -0
- package/templates/shopify/CODE_OF_CONDUCT.md +132 -0
- package/templates/shopify/CONTRIBUTING.md +24 -0
- package/templates/shopify/LICENSE.md +9 -0
- package/templates/shopify/README.md +160 -0
- package/templates/shopify/assets/carousel.js +2 -0
- package/templates/shopify/assets/critical.css +117 -0
- package/templates/shopify/assets/icon-account.svg +6 -0
- package/templates/shopify/assets/icon-cart.svg +5 -0
- package/templates/shopify/assets/predictive-search.js +65 -0
- package/templates/shopify/assets/shoppy-x-ray.svg +1 -0
- package/templates/shopify/blocks/_accordion-item.liquid +44 -0
- package/templates/shopify/blocks/_card-footer.liquid +26 -0
- package/templates/shopify/blocks/_carousel-slide.liquid +21 -0
- package/templates/shopify/blocks/_column.liquid +30 -0
- package/templates/shopify/blocks/_dialog-footer.liquid +28 -0
- package/templates/shopify/blocks/_sheet-footer.liquid +28 -0
- package/templates/shopify/blocks/_tab.liquid +21 -0
- package/templates/shopify/blocks/accordion.liquid +40 -0
- package/templates/shopify/blocks/blog-posts.liquid +70 -0
- package/templates/shopify/blocks/button.figma.ts +359 -0
- package/templates/shopify/blocks/button.liquid +477 -0
- package/templates/shopify/blocks/card.liquid +73 -0
- package/templates/shopify/blocks/carousel.liquid +47 -0
- package/templates/shopify/blocks/columns.liquid +73 -0
- package/templates/shopify/blocks/contact-form.liquid +69 -0
- package/templates/shopify/blocks/container.liquid +29 -0
- package/templates/shopify/blocks/dialog.liquid +77 -0
- package/templates/shopify/blocks/group.liquid +105 -0
- package/templates/shopify/blocks/heading.liquid +57 -0
- package/templates/shopify/blocks/icon-button.figma.ts +358 -0
- package/templates/shopify/blocks/media.liquid +80 -0
- package/templates/shopify/blocks/navigation-menu.liquid +23 -0
- package/templates/shopify/blocks/panel.liquid +64 -0
- package/templates/shopify/blocks/popover.liquid +88 -0
- package/templates/shopify/blocks/section-heading.liquid +68 -0
- package/templates/shopify/blocks/sheet.liquid +90 -0
- package/templates/shopify/blocks/tabs.liquid +58 -0
- package/templates/shopify/blocks/text.liquid +59 -0
- package/templates/shopify/build-js.mjs +22 -0
- package/templates/shopify/config/settings_data.json +182 -0
- package/templates/shopify/config/settings_schema.json +365 -0
- package/templates/shopify/layout/password.liquid +19 -0
- package/templates/shopify/layout/theme.liquid +57 -0
- package/templates/shopify/locales/en.default.json +58 -0
- package/templates/shopify/locales/en.default.schema.json +303 -0
- package/templates/shopify/package-lock.json +521 -0
- package/templates/shopify/package.json +17 -0
- package/templates/shopify/sections/404.liquid +23 -0
- package/templates/shopify/sections/article.liquid +81 -0
- package/templates/shopify/sections/baseline-header.liquid +236 -0
- package/templates/shopify/sections/baseline-kitchen-sink.liquid +988 -0
- package/templates/shopify/sections/baseline-section.liquid +661 -0
- package/templates/shopify/sections/blog.liquid +36 -0
- package/templates/shopify/sections/cart.liquid +65 -0
- package/templates/shopify/sections/collection.liquid +54 -0
- package/templates/shopify/sections/collections.liquid +83 -0
- package/templates/shopify/sections/custom-section.liquid +60 -0
- package/templates/shopify/sections/footer-group.json +25 -0
- package/templates/shopify/sections/footer.liquid +57 -0
- package/templates/shopify/sections/header-group.json +22 -0
- package/templates/shopify/sections/page.liquid +18 -0
- package/templates/shopify/sections/password.liquid +36 -0
- package/templates/shopify/sections/product.liquid +60 -0
- package/templates/shopify/sections/search.liquid +73 -0
- package/templates/shopify/snippets/accordion-item.figma.ts +34 -0
- package/templates/shopify/snippets/accordion-item.liquid +36 -0
- package/templates/shopify/snippets/accordion.figma.ts +37 -0
- package/templates/shopify/snippets/accordion.liquid +169 -0
- package/templates/shopify/snippets/alert.figma.ts +31 -0
- package/templates/shopify/snippets/alert.liquid +104 -0
- package/templates/shopify/snippets/avatar-group.figma.ts +17 -0
- package/templates/shopify/snippets/avatar-group.liquid +66 -0
- package/templates/shopify/snippets/avatar.figma.ts +24 -0
- package/templates/shopify/snippets/avatar.liquid +143 -0
- package/templates/shopify/snippets/badge.figma.ts +355 -0
- package/templates/shopify/snippets/badge.liquid +111 -0
- package/templates/shopify/snippets/baseline-schemes.liquid +44 -0
- package/templates/shopify/snippets/baseline-tokens.liquid +712 -0
- package/templates/shopify/snippets/breadcrumb.figma.ts +12 -0
- package/templates/shopify/snippets/breadcrumb.liquid +124 -0
- package/templates/shopify/snippets/button-group.liquid +148 -0
- package/templates/shopify/snippets/button.liquid +144 -0
- package/templates/shopify/snippets/card.figma.ts +43 -0
- package/templates/shopify/snippets/card.liquid +196 -0
- package/templates/shopify/snippets/carousel-item.liquid +18 -0
- package/templates/shopify/snippets/carousel.figma.ts +28 -0
- package/templates/shopify/snippets/carousel.liquid +121 -0
- package/templates/shopify/snippets/checkbox.liquid +147 -0
- package/templates/shopify/snippets/container.liquid +52 -0
- package/templates/shopify/snippets/css-variables.liquid +18 -0
- package/templates/shopify/snippets/dialog.figma.ts +36 -0
- package/templates/shopify/snippets/dialog.liquid +217 -0
- package/templates/shopify/snippets/field-separator.liquid +68 -0
- package/templates/shopify/snippets/field.liquid +187 -0
- package/templates/shopify/snippets/icon.liquid +101 -0
- package/templates/shopify/snippets/image.liquid +64 -0
- package/templates/shopify/snippets/input-group.liquid +196 -0
- package/templates/shopify/snippets/input.liquid +126 -0
- package/templates/shopify/snippets/item-group.liquid +31 -0
- package/templates/shopify/snippets/item.figma.ts +40 -0
- package/templates/shopify/snippets/item.liquid +162 -0
- package/templates/shopify/snippets/media.figma.ts +33 -0
- package/templates/shopify/snippets/media.liquid +273 -0
- package/templates/shopify/snippets/meta-tags.liquid +105 -0
- package/templates/shopify/snippets/meter.figma.ts +24 -0
- package/templates/shopify/snippets/meter.liquid +118 -0
- package/templates/shopify/snippets/native-select.liquid +141 -0
- package/templates/shopify/snippets/navigation-menu-item.figma.ts +23 -0
- package/templates/shopify/snippets/navigation-menu-item.liquid +40 -0
- package/templates/shopify/snippets/navigation-menu-link.figma.ts +27 -0
- package/templates/shopify/snippets/navigation-menu-link.liquid +31 -0
- package/templates/shopify/snippets/navigation-menu.figma.ts +12 -0
- package/templates/shopify/snippets/navigation-menu.liquid +300 -0
- package/templates/shopify/snippets/pagination.figma.ts +13 -0
- package/templates/shopify/snippets/pagination.liquid +208 -0
- package/templates/shopify/snippets/popover.figma.ts +41 -0
- package/templates/shopify/snippets/popover.liquid +203 -0
- package/templates/shopify/snippets/progress.figma.ts +26 -0
- package/templates/shopify/snippets/progress.liquid +114 -0
- package/templates/shopify/snippets/radio.liquid +145 -0
- package/templates/shopify/snippets/sheet.figma.ts +37 -0
- package/templates/shopify/snippets/sheet.liquid +197 -0
- package/templates/shopify/snippets/sidebar-menu-item.liquid +34 -0
- package/templates/shopify/snippets/sidebar-menu-sub-link.liquid +17 -0
- package/templates/shopify/snippets/sidebar-menu.liquid +139 -0
- package/templates/shopify/snippets/spinner.liquid +42 -0
- package/templates/shopify/snippets/switch.liquid +180 -0
- package/templates/shopify/snippets/tab.figma.ts +353 -0
- package/templates/shopify/snippets/tab.liquid +33 -0
- package/templates/shopify/snippets/tabs.figma.ts +21 -0
- package/templates/shopify/snippets/tabs.liquid +260 -0
- package/templates/shopify/snippets/text-styles.liquid +45 -0
- package/templates/shopify/snippets/textarea.liquid +103 -0
- package/templates/shopify/snippets/toggle-group.figma.ts +30 -0
- package/templates/shopify/snippets/toggle-group.liquid +46 -0
- package/templates/shopify/snippets/toggle.figma.ts +357 -0
- package/templates/shopify/snippets/toggle.liquid +104 -0
- package/templates/shopify/snippets/typeset.liquid +498 -0
- package/templates/shopify/src/carousel.js +94 -0
- package/templates/shopify/templates/404.json +20 -0
- package/templates/shopify/templates/article.json +20 -0
- package/templates/shopify/templates/blog.json +20 -0
- package/templates/shopify/templates/cart.json +20 -0
- package/templates/shopify/templates/collection.json +20 -0
- package/templates/shopify/templates/gift_card.liquid +73 -0
- package/templates/shopify/templates/index.json +18 -0
- package/templates/shopify/templates/list-collections.json +20 -0
- package/templates/shopify/templates/page.json +20 -0
- package/templates/shopify/templates/password.json +21 -0
- package/templates/shopify/templates/product.json +20 -0
- package/templates/shopify/templates/search.json +20 -0
- package/templates/skills/baseline-client-tokens/SKILL.md +74 -0
- package/templates/wordpress/.ddev/commands/web/seed +258 -3
- package/templates/wordpress/.ddev/config.yaml +10 -7
- package/templates/wordpress/.ddev/seed/gravityforms-contact.json +1 -0
- package/templates/wordpress/README.md +37 -39
- package/templates/wordpress/auth.json.example +1 -1
- package/templates/wordpress/composer.json +88 -84
- package/templates/wordpress/theme/README.md +3 -0
- package/templates/wordpress/theme/acf-json/.gitkeep +0 -0
- package/templates/wordpress/theme/acf-json/group_baseline_alert.json +83 -0
- package/templates/wordpress/theme/acf-json/group_baseline_avatar.json +82 -0
- package/templates/wordpress/theme/acf-json/group_baseline_avatar_group.json +35 -0
- package/templates/wordpress/theme/acf-json/group_baseline_badge.json +93 -0
- package/templates/wordpress/theme/acf-json/group_baseline_carousel.json +21 -0
- package/templates/wordpress/theme/acf-json/group_baseline_carousel_slide.json +16 -0
- package/templates/wordpress/theme/acf-json/group_baseline_dialog.json +68 -0
- package/templates/wordpress/theme/acf-json/group_baseline_dialog_footer.json +23 -0
- package/templates/wordpress/theme/acf-json/group_baseline_item.json +101 -0
- package/templates/wordpress/theme/acf-json/group_baseline_item_group.json +26 -0
- package/templates/wordpress/theme/acf-json/group_baseline_sheet.json +104 -0
- package/templates/wordpress/theme/acf-json/group_baseline_sheet_footer.json +31 -0
- package/templates/wordpress/theme/assets/app.css +2 -0
- package/templates/wordpress/theme/assets/editor.css +2 -0
- package/templates/wordpress/theme/assets/images/placeholder.svg +1 -0
- package/templates/wordpress/theme/assets/js/carousel-editor.js +85 -0
- package/templates/wordpress/theme/assets/js/carousel.js +2 -0
- package/templates/wordpress/theme/assets/js/core-button-editor.js +243 -0
- package/templates/wordpress/theme/assets/js/core-layout-editor.js +144 -0
- package/templates/wordpress/theme/assets/js/core-navigation.js +11 -0
- package/templates/wordpress/theme/assets/js/media-editor.js +52 -0
- package/templates/wordpress/theme/assets/js/media.js +38 -0
- package/templates/wordpress/theme/assets/tokens.css +1030 -0
- package/templates/wordpress/theme/blocks/alert/alert.figma.ts +32 -0
- package/templates/wordpress/theme/blocks/alert/block.json +24 -0
- package/templates/wordpress/theme/blocks/alert/render.php +30 -0
- package/templates/wordpress/theme/blocks/avatar/block.json +24 -0
- package/templates/wordpress/theme/blocks/avatar/render.php +35 -0
- package/templates/wordpress/theme/blocks/avatar-group/avatar-group.figma.ts +16 -0
- package/templates/wordpress/theme/blocks/avatar-group/block.json +25 -0
- package/templates/wordpress/theme/blocks/avatar-group/render.php +27 -0
- package/templates/wordpress/theme/blocks/badge/badge.figma.ts +349 -0
- package/templates/wordpress/theme/blocks/badge/block.json +23 -0
- package/templates/wordpress/theme/blocks/badge/render.php +28 -0
- package/templates/wordpress/theme/blocks/carousel/block.json +25 -0
- package/templates/wordpress/theme/blocks/carousel/carousel.figma.ts +22 -0
- package/templates/wordpress/theme/blocks/carousel/render.php +54 -0
- package/templates/wordpress/theme/blocks/carousel-slide/block.json +24 -0
- package/templates/wordpress/theme/blocks/carousel-slide/render.php +13 -0
- package/templates/wordpress/theme/blocks/dialog/block.json +24 -0
- package/templates/wordpress/theme/blocks/dialog/dialog.figma.ts +36 -0
- package/templates/wordpress/theme/blocks/dialog/render.php +41 -0
- package/templates/wordpress/theme/blocks/dialog-footer/block.json +25 -0
- package/templates/wordpress/theme/blocks/dialog-footer/render.php +18 -0
- package/templates/wordpress/theme/blocks/item/block.json +25 -0
- package/templates/wordpress/theme/blocks/item/item.figma.ts +43 -0
- package/templates/wordpress/theme/blocks/item/render.php +38 -0
- package/templates/wordpress/theme/blocks/item-group/block.json +25 -0
- package/templates/wordpress/theme/blocks/item-group/item-group.figma.ts +28 -0
- package/templates/wordpress/theme/blocks/item-group/render.php +22 -0
- package/templates/wordpress/theme/blocks/sheet/block.json +24 -0
- package/templates/wordpress/theme/blocks/sheet/render.php +39 -0
- package/templates/wordpress/theme/blocks/sheet/sheet.figma.ts +38 -0
- package/templates/wordpress/theme/blocks/sheet-footer/block.json +25 -0
- package/templates/wordpress/theme/blocks/sheet-footer/render.php +18 -0
- package/templates/wordpress/theme/build-js.mjs +22 -0
- package/templates/wordpress/theme/code-connect/accordion-item.figma.ts +47 -0
- package/templates/wordpress/theme/code-connect/accordion.figma.ts +37 -0
- package/templates/wordpress/theme/code-connect/avatar.figma.ts +25 -0
- package/templates/wordpress/theme/code-connect/breadcrumb.figma.ts +12 -0
- package/templates/wordpress/theme/code-connect/button.figma.ts +360 -0
- package/templates/wordpress/theme/code-connect/card.figma.ts +45 -0
- package/templates/wordpress/theme/code-connect/icon-button.figma.ts +359 -0
- package/templates/wordpress/theme/code-connect/navigation-menu.figma.ts +20 -0
- package/templates/wordpress/theme/code-connect/pagination.figma.ts +17 -0
- package/templates/wordpress/theme/code-connect/popover.figma.ts +42 -0
- package/templates/wordpress/theme/code-connect/tabs.figma.ts +32 -0
- package/templates/wordpress/theme/code-connect/toggle-group.figma.ts +34 -0
- package/templates/wordpress/theme/code-connect/toggle.figma.ts +356 -0
- package/templates/wordpress/theme/composer.json +7 -0
- package/templates/wordpress/theme/footer.php +4 -0
- package/templates/wordpress/theme/functions.php +86 -0
- package/templates/wordpress/theme/header.php +17 -0
- package/templates/wordpress/theme/inc/acf.php +13 -0
- package/templates/wordpress/theme/inc/blocks.php +41 -0
- package/templates/wordpress/theme/inc/carousel.php +36 -0
- package/templates/wordpress/theme/inc/components/alert.php +83 -0
- package/templates/wordpress/theme/inc/components/avatar.php +111 -0
- package/templates/wordpress/theme/inc/components/badge.php +96 -0
- package/templates/wordpress/theme/inc/components/button.php +77 -0
- package/templates/wordpress/theme/inc/components/dialog.php +98 -0
- package/templates/wordpress/theme/inc/components/item.php +111 -0
- package/templates/wordpress/theme/inc/components/popover.php +125 -0
- package/templates/wordpress/theme/inc/components/sheet.php +88 -0
- package/templates/wordpress/theme/inc/components/toggle.php +127 -0
- package/templates/wordpress/theme/inc/core-button.php +96 -0
- package/templates/wordpress/theme/inc/core-card.php +30 -0
- package/templates/wordpress/theme/inc/core-layout.php +76 -0
- package/templates/wordpress/theme/inc/core-navigation.php +31 -0
- package/templates/wordpress/theme/inc/core-pagination.php +87 -0
- package/templates/wordpress/theme/inc/header.php +39 -0
- package/templates/wordpress/theme/inc/icons.generated.php +94 -0
- package/templates/wordpress/theme/inc/icons.php +70 -0
- package/templates/wordpress/theme/inc/looks.generated.php +18 -0
- package/templates/wordpress/theme/inc/media.php +183 -0
- package/templates/wordpress/theme/inc/sections.php +16 -0
- package/templates/wordpress/theme/index.php +24 -0
- package/templates/wordpress/theme/package-lock.json +1637 -0
- package/templates/wordpress/theme/package.json +23 -0
- package/templates/wordpress/theme/parts/header.html +23 -0
- package/templates/wordpress/theme/patterns/blog-card-grid.php +41 -0
- package/templates/wordpress/theme/patterns/card.php +46 -0
- package/templates/wordpress/theme/patterns/contact-centered.php +22 -0
- package/templates/wordpress/theme/patterns/cta-left.php +25 -0
- package/templates/wordpress/theme/patterns/faq-centered.php +36 -0
- package/templates/wordpress/theme/patterns/header-inline.php +33 -0
- package/templates/wordpress/theme/patterns/header-stacked.php +25 -0
- package/templates/wordpress/theme/patterns/hero-centered.php +28 -0
- package/templates/wordpress/theme/patterns/hero-split.php +41 -0
- package/templates/wordpress/theme/patterns/section.php +28 -0
- package/templates/wordpress/theme/src/app.css +45 -0
- package/templates/wordpress/theme/src/carousel.css +93 -0
- package/templates/wordpress/theme/src/carousel.js +94 -0
- package/templates/wordpress/theme/src/checkbox.css +102 -0
- package/templates/wordpress/theme/src/core-accordion.css +158 -0
- package/templates/wordpress/theme/src/core-avatar.css +68 -0
- package/templates/wordpress/theme/src/core-breadcrumbs.css +124 -0
- package/templates/wordpress/theme/src/core-button-editor.css +45 -0
- package/templates/wordpress/theme/src/core-button.css +155 -0
- package/templates/wordpress/theme/src/core-card.css +157 -0
- package/templates/wordpress/theme/src/core-layout.css +73 -0
- package/templates/wordpress/theme/src/core-navigation.css +290 -0
- package/templates/wordpress/theme/src/core-pagination.css +112 -0
- package/templates/wordpress/theme/src/core-table.css +88 -0
- package/templates/wordpress/theme/src/core-tabs.css +86 -0
- package/templates/wordpress/theme/src/dialog.css +29 -0
- package/templates/wordpress/theme/src/editor.css +65 -0
- package/templates/wordpress/theme/src/field.css +95 -0
- package/templates/wordpress/theme/src/fonts.css +3 -0
- package/templates/wordpress/theme/src/gravityforms.css +919 -0
- package/templates/wordpress/theme/src/header.css +80 -0
- package/templates/wordpress/theme/src/icons.generated.css +16 -0
- package/templates/wordpress/theme/src/input-group.css +105 -0
- package/templates/wordpress/theme/src/input.css +116 -0
- package/templates/wordpress/theme/src/item.css +7 -0
- package/templates/wordpress/theme/src/looks.generated.css +358 -0
- package/templates/wordpress/theme/src/media.css +160 -0
- package/templates/wordpress/theme/src/radio.css +88 -0
- package/templates/wordpress/theme/src/sections.css +80 -0
- package/templates/wordpress/theme/src/sheet.css +24 -0
- package/templates/wordpress/theme/src/switch.css +120 -0
- package/templates/wordpress/theme/src/text-styles.css +44 -0
- package/templates/wordpress/theme/src/textarea.css +61 -0
- package/templates/wordpress/theme/src/toggle-group.css +28 -0
- package/templates/wordpress/theme/src/typeset.css +510 -0
- package/templates/wordpress/theme/style.css +13 -0
- package/templates/wordpress/theme/theme.json +362 -0
- package/templates/wordpress/web/wp-config.php +38 -0
- package/templates/wordpress/wp-cli.yml +1 -0
- package/templates/next/.claude/skills/ai-elements/SKILL.md +0 -160
- package/templates/next/.claude/skills/ai-elements/references/agent.md +0 -134
- package/templates/next/.claude/skills/ai-elements/references/artifact.md +0 -84
- package/templates/next/.claude/skills/ai-elements/references/attachments.md +0 -190
- package/templates/next/.claude/skills/ai-elements/references/audio-player.md +0 -134
- package/templates/next/.claude/skills/ai-elements/references/canvas.md +0 -34
- package/templates/next/.claude/skills/ai-elements/references/chain-of-thought.md +0 -81
- package/templates/next/.claude/skills/ai-elements/references/checkpoint.md +0 -183
- package/templates/next/.claude/skills/ai-elements/references/code-block.md +0 -170
- package/templates/next/.claude/skills/ai-elements/references/commit.md +0 -177
- package/templates/next/.claude/skills/ai-elements/references/confirmation.md +0 -262
- package/templates/next/.claude/skills/ai-elements/references/connection.md +0 -34
- package/templates/next/.claude/skills/ai-elements/references/context.md +0 -126
- package/templates/next/.claude/skills/ai-elements/references/controls.md +0 -32
- package/templates/next/.claude/skills/ai-elements/references/conversation.md +0 -224
- package/templates/next/.claude/skills/ai-elements/references/edge.md +0 -52
- package/templates/next/.claude/skills/ai-elements/references/environment-variables.md +0 -102
- package/templates/next/.claude/skills/ai-elements/references/file-tree.md +0 -72
- package/templates/next/.claude/skills/ai-elements/references/image.md +0 -146
- package/templates/next/.claude/skills/ai-elements/references/inline-citation.md +0 -299
- package/templates/next/.claude/skills/ai-elements/references/jsx-preview.md +0 -104
- package/templates/next/.claude/skills/ai-elements/references/message.md +0 -237
- package/templates/next/.claude/skills/ai-elements/references/mic-selector.md +0 -189
- package/templates/next/.claude/skills/ai-elements/references/model-selector.md +0 -112
- package/templates/next/.claude/skills/ai-elements/references/node.md +0 -73
- package/templates/next/.claude/skills/ai-elements/references/open-in-chat.md +0 -67
- package/templates/next/.claude/skills/ai-elements/references/package-info.md +0 -95
- package/templates/next/.claude/skills/ai-elements/references/panel.md +0 -33
- package/templates/next/.claude/skills/ai-elements/references/persona.md +0 -166
- package/templates/next/.claude/skills/ai-elements/references/plan.md +0 -79
- package/templates/next/.claude/skills/ai-elements/references/prompt-input.md +0 -579
- package/templates/next/.claude/skills/ai-elements/references/queue.md +0 -172
- package/templates/next/.claude/skills/ai-elements/references/reasoning.md +0 -238
- package/templates/next/.claude/skills/ai-elements/references/sandbox.md +0 -129
- package/templates/next/.claude/skills/ai-elements/references/schema-display.md +0 -102
- package/templates/next/.claude/skills/ai-elements/references/shimmer.md +0 -48
- package/templates/next/.claude/skills/ai-elements/references/snippet.md +0 -64
- package/templates/next/.claude/skills/ai-elements/references/sources.md +0 -209
- package/templates/next/.claude/skills/ai-elements/references/speech-input.md +0 -163
- package/templates/next/.claude/skills/ai-elements/references/stack-trace.md +0 -224
- package/templates/next/.claude/skills/ai-elements/references/suggestion.md +0 -124
- package/templates/next/.claude/skills/ai-elements/references/task.md +0 -222
- package/templates/next/.claude/skills/ai-elements/references/terminal.md +0 -103
- package/templates/next/.claude/skills/ai-elements/references/test-results.md +0 -157
- package/templates/next/.claude/skills/ai-elements/references/tool.md +0 -285
- package/templates/next/.claude/skills/ai-elements/references/toolbar.md +0 -32
- package/templates/next/.claude/skills/ai-elements/references/transcription.md +0 -120
- package/templates/next/.claude/skills/ai-elements/references/voice-selector.md +0 -241
- package/templates/next/.claude/skills/ai-elements/references/web-preview.md +0 -200
- package/templates/next/.claude/skills/ai-elements/scripts/agent.tsx +0 -61
- package/templates/next/.claude/skills/ai-elements/scripts/artifact.tsx +0 -127
- package/templates/next/.claude/skills/ai-elements/scripts/attachments-inline.tsx +0 -128
- package/templates/next/.claude/skills/ai-elements/scripts/attachments-list.tsx +0 -95
- package/templates/next/.claude/skills/ai-elements/scripts/attachments.tsx +0 -85
- package/templates/next/.claude/skills/ai-elements/scripts/audio-player-remote.tsx +0 -35
- package/templates/next/.claude/skills/ai-elements/scripts/audio-player.tsx +0 -68
- package/templates/next/.claude/skills/ai-elements/scripts/chain-of-thought.tsx +0 -82
- package/templates/next/.claude/skills/ai-elements/scripts/checkpoint.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/code-block-dark.tsx +0 -46
- package/templates/next/.claude/skills/ai-elements/scripts/code-block.tsx +0 -120
- package/templates/next/.claude/skills/ai-elements/scripts/commit.tsx +0 -94
- package/templates/next/.claude/skills/ai-elements/scripts/confirmation-accepted.tsx +0 -40
- package/templates/next/.claude/skills/ai-elements/scripts/confirmation-rejected.tsx +0 -40
- package/templates/next/.claude/skills/ai-elements/scripts/confirmation-request.tsx +0 -54
- package/templates/next/.claude/skills/ai-elements/scripts/confirmation.tsx +0 -55
- package/templates/next/.claude/skills/ai-elements/scripts/context.tsx +0 -45
- package/templates/next/.claude/skills/ai-elements/scripts/conversation.tsx +0 -177
- package/templates/next/.claude/skills/ai-elements/scripts/environment-variables.tsx +0 -62
- package/templates/next/.claude/skills/ai-elements/scripts/file-tree-basic.tsx +0 -18
- package/templates/next/.claude/skills/ai-elements/scripts/file-tree-expanded.tsx +0 -21
- package/templates/next/.claude/skills/ai-elements/scripts/file-tree-selection.tsx +0 -24
- package/templates/next/.claude/skills/ai-elements/scripts/file-tree.tsx +0 -42
- package/templates/next/.claude/skills/ai-elements/scripts/image.tsx +0 -20
- package/templates/next/.claude/skills/ai-elements/scripts/inline-citation.tsx +0 -97
- package/templates/next/.claude/skills/ai-elements/scripts/jsx-preview.tsx +0 -104
- package/templates/next/.claude/skills/ai-elements/scripts/message.tsx +0 -365
- package/templates/next/.claude/skills/ai-elements/scripts/mic-selector.tsx +0 -49
- package/templates/next/.claude/skills/ai-elements/scripts/model-selector.tsx +0 -365
- package/templates/next/.claude/skills/ai-elements/scripts/open-in-chat.tsx +0 -33
- package/templates/next/.claude/skills/ai-elements/scripts/package-info.tsx +0 -51
- package/templates/next/.claude/skills/ai-elements/scripts/persona-command.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-glint.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-halo.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-mana.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-obsidian.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-opal.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/plan.tsx +0 -65
- package/templates/next/.claude/skills/ai-elements/scripts/prompt-input-cursor.tsx +0 -502
- package/templates/next/.claude/skills/ai-elements/scripts/prompt-input-tooltip.tsx +0 -44
- package/templates/next/.claude/skills/ai-elements/scripts/prompt-input.tsx +0 -267
- package/templates/next/.claude/skills/ai-elements/scripts/queue-prompt-input.tsx +0 -394
- package/templates/next/.claude/skills/ai-elements/scripts/queue.tsx +0 -295
- package/templates/next/.claude/skills/ai-elements/scripts/reasoning.tsx +0 -71
- package/templates/next/.claude/skills/ai-elements/scripts/sandbox.tsx +0 -178
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display-basic.tsx +0 -9
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display-body.tsx +0 -20
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display-nested.tsx +0 -23
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display-params.tsx +0 -16
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/shimmer-duration.tsx +0 -31
- package/templates/next/.claude/skills/ai-elements/scripts/shimmer-elements.tsx +0 -43
- package/templates/next/.claude/skills/ai-elements/scripts/shimmer.tsx +0 -17
- package/templates/next/.claude/skills/ai-elements/scripts/snippet-plain.tsx +0 -19
- package/templates/next/.claude/skills/ai-elements/scripts/snippet.tsx +0 -25
- package/templates/next/.claude/skills/ai-elements/scripts/sources-custom.tsx +0 -39
- package/templates/next/.claude/skills/ai-elements/scripts/sources.tsx +0 -32
- package/templates/next/.claude/skills/ai-elements/scripts/speech-input.tsx +0 -84
- package/templates/next/.claude/skills/ai-elements/scripts/stack-trace-collapsed.tsx +0 -39
- package/templates/next/.claude/skills/ai-elements/scripts/stack-trace-no-internal.tsx +0 -41
- package/templates/next/.claude/skills/ai-elements/scripts/stack-trace.tsx +0 -58
- package/templates/next/.claude/skills/ai-elements/scripts/suggestion-input.tsx +0 -144
- package/templates/next/.claude/skills/ai-elements/scripts/suggestion.tsx +0 -32
- package/templates/next/.claude/skills/ai-elements/scripts/task.tsx +0 -59
- package/templates/next/.claude/skills/ai-elements/scripts/terminal-basic.tsx +0 -7
- package/templates/next/.claude/skills/ai-elements/scripts/terminal-clear.tsx +0 -19
- package/templates/next/.claude/skills/ai-elements/scripts/terminal-streaming.tsx +0 -38
- package/templates/next/.claude/skills/ai-elements/scripts/terminal.tsx +0 -82
- package/templates/next/.claude/skills/ai-elements/scripts/test-results-basic.tsx +0 -27
- package/templates/next/.claude/skills/ai-elements/scripts/test-results-errors.tsx +0 -51
- package/templates/next/.claude/skills/ai-elements/scripts/test-results-suites.tsx +0 -40
- package/templates/next/.claude/skills/ai-elements/scripts/test-results.tsx +0 -102
- package/templates/next/.claude/skills/ai-elements/scripts/tool-input-available.tsx +0 -31
- package/templates/next/.claude/skills/ai-elements/scripts/tool-input-streaming.tsx +0 -30
- package/templates/next/.claude/skills/ai-elements/scripts/tool-output-available.tsx +0 -80
- package/templates/next/.claude/skills/ai-elements/scripts/tool-output-error.tsx +0 -44
- package/templates/next/.claude/skills/ai-elements/scripts/tool.tsx +0 -222
- package/templates/next/.claude/skills/ai-elements/scripts/transcription.tsx +0 -290
- package/templates/next/.claude/skills/ai-elements/scripts/voice-selector.tsx +0 -245
- package/templates/next/.claude/skills/ai-elements/scripts/web-preview.tsx +0 -115
- package/templates/next/.claude/skills/ai-sdk/SKILL.md +0 -78
- package/templates/next/.claude/skills/frontend-design/LICENSE.txt +0 -177
- package/templates/next/.claude/skills/frontend-design/SKILL.md +0 -55
- package/templates/next/.claude/skills/gc-implement-figma-page/SKILL.md +0 -93
- package/templates/next/.claude/skills/migrate-ai-sdk-v6-to-v7/SKILL.md +0 -108
- package/templates/next/.claude/skills/vercel-composition-patterns/AGENTS.md +0 -946
- package/templates/next/.claude/skills/vercel-composition-patterns/README.md +0 -60
- package/templates/next/.claude/skills/vercel-composition-patterns/SKILL.md +0 -89
- package/templates/next/.claude/skills/vercel-composition-patterns/metadata.json +0 -11
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/_sections.md +0 -29
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/_template.md +0 -24
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +0 -100
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/architecture-compound-components.md +0 -112
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/patterns-children-over-render-props.md +0 -87
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/patterns-explicit-variants.md +0 -100
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/react19-no-forwardref.md +0 -42
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/state-context-interface.md +0 -191
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/state-decouple-implementation.md +0 -113
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/state-lift-state.md +0 -125
- package/templates/next/.claude/skills/vercel-react-best-practices/AGENTS.md +0 -3810
- package/templates/next/.claude/skills/vercel-react-best-practices/README.md +0 -123
- package/templates/next/.claude/skills/vercel-react-best-practices/SKILL.md +0 -149
- package/templates/next/.claude/skills/vercel-react-best-practices/metadata.json +0 -15
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/_sections.md +0 -46
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/_template.md +0 -28
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/advanced-effect-event-deps.md +0 -56
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +0 -55
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/advanced-init-once.md +0 -42
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/advanced-use-latest.md +0 -39
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-api-routes.md +0 -38
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +0 -37
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-defer-await.md +0 -82
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-dependencies.md +0 -51
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-parallel.md +0 -28
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +0 -99
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-analyzable-paths.md +0 -63
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +0 -60
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-conditional.md +0 -31
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +0 -49
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +0 -35
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-preload.md +0 -50
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/client-event-listeners.md +0 -74
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +0 -71
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +0 -48
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/client-swr-dedup.md +0 -56
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +0 -107
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-cache-function-results.md +0 -80
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-cache-property-access.md +0 -28
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-cache-storage.md +0 -70
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-combine-iterations.md +0 -32
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-early-exit.md +0 -50
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-flatmap-filter.md +0 -60
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +0 -45
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-index-maps.md +0 -37
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-length-check-first.md +0 -49
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-min-max-loop.md +0 -82
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-request-idle-callback.md +0 -105
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +0 -24
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +0 -57
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-activity.md +0 -26
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +0 -47
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +0 -40
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +0 -38
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +0 -46
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +0 -82
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +0 -30
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-resource-hints.md +0 -85
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-script-defer-async.md +0 -68
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +0 -28
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +0 -75
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +0 -39
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-dependencies.md +0 -45
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +0 -40
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-derived-state.md +0 -29
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +0 -74
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +0 -58
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +0 -38
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-memo.md +0 -44
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +0 -45
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-no-inline-components.md +0 -82
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +0 -35
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +0 -64
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-transitions.md +0 -40
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-use-deferred-value.md +0 -59
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +0 -73
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +0 -73
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-auth-actions.md +0 -96
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-cache-lru.md +0 -41
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-cache-react.md +0 -76
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-dedup-props.md +0 -65
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-hoist-static-io.md +0 -149
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-no-shared-module-state.md +0 -50
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +0 -83
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +0 -34
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-serialization.md +0 -38
- package/templates/next/.claude/skills/web-design-guidelines/SKILL.md +0 -39
- package/templates/next/CLAUDE.md +0 -42
- package/templates/next/README.md +0 -30
- package/templates/next/_gitignore +0 -4
- package/templates/next/app/layout.tsx +0 -44
- package/templates/next/globals.d.ts +0 -8
- package/templates/next/next.config.mjs +0 -6
- package/templates/next/package.json +0 -38
- package/templates/next/postcss.config.mjs +0 -5
- package/templates/next/skills-lock.json +0 -47
- package/templates/next/tsconfig.json +0 -36
- package/templates/shopify-theme/.claude/skills/gc-shopify-block/SKILL.md +0 -44
- package/templates/shopify-theme/.claude/skills/shopify-dev/SKILL.md +0 -51
- package/templates/shopify-theme/.claude/skills/shopify-dev/scripts/log_skill_use.mjs +0 -205
- package/templates/shopify-theme/.claude/skills/shopify-dev/scripts/search_docs.mjs +0 -272
- package/templates/shopify-theme/.claude/skills/shopify-dev/scripts/track-telemetry.ps1 +0 -361
- package/templates/shopify-theme/.claude/skills/shopify-dev/scripts/track-telemetry.sh +0 -527
- package/templates/shopify-theme/.claude/skills/shopify-liquid/SKILL.md +0 -343
- package/templates/shopify-theme/.claude/skills/shopify-liquid/blocks/hero-slide.liquid +0 -342
- package/templates/shopify-theme/.claude/skills/shopify-liquid/config/settings_schema.json +0 -1
- package/templates/shopify-theme/.claude/skills/shopify-liquid/featured-collection.liquid +0 -457
- package/templates/shopify-theme/.claude/skills/shopify-liquid/locales/en.default.json +0 -10
- package/templates/shopify-theme/.claude/skills/shopify-liquid/locales/en.default.schema.json +0 -103
- package/templates/shopify-theme/.claude/skills/shopify-liquid/package.json +0 -10
- package/templates/shopify-theme/.claude/skills/shopify-liquid/scripts/search_docs.mjs +0 -759
- package/templates/shopify-theme/.claude/skills/shopify-liquid/scripts/track-telemetry.ps1 +0 -361
- package/templates/shopify-theme/.claude/skills/shopify-liquid/scripts/track-telemetry.sh +0 -527
- package/templates/shopify-theme/.claude/skills/shopify-liquid/scripts/validate.mjs +0 -654
- package/templates/shopify-theme/.claude/skills/shopify-liquid/sections/hero-banner.liquid +0 -329
- package/templates/shopify-theme/.claude/skills/shopify-use-shopify-cli/SKILL.md +0 -165
- package/templates/shopify-theme/.claude/skills/shopify-use-shopify-cli/scripts/log_skill_use.mjs +0 -205
- package/templates/shopify-theme/.claude/skills/shopify-use-shopify-cli/scripts/track-telemetry.ps1 +0 -361
- package/templates/shopify-theme/.claude/skills/shopify-use-shopify-cli/scripts/track-telemetry.sh +0 -527
- package/templates/shopify-theme/.shopifyignore +0 -9
- package/templates/shopify-theme/CLAUDE.md +0 -51
- package/templates/shopify-theme/README.md +0 -92
- package/templates/shopify-theme/assets/baseline.css +0 -8390
- package/templates/shopify-theme/assets/swiper-element-bundle.min.js +0 -14
- package/templates/shopify-theme/blocks/_accordion.liquid +0 -59
- package/templates/shopify-theme/blocks/_carousel-slide.liquid +0 -24
- package/templates/shopify-theme/blocks/_modal-body.liquid +0 -18
- package/templates/shopify-theme/blocks/_modal-footer.liquid +0 -36
- package/templates/shopify-theme/blocks/_modal-header.liquid +0 -19
- package/templates/shopify-theme/blocks/_modal-media.liquid +0 -37
- package/templates/shopify-theme/blocks/accordion-group.liquid +0 -53
- package/templates/shopify-theme/blocks/alert.liquid +0 -92
- package/templates/shopify-theme/blocks/avatar-group.liquid +0 -51
- package/templates/shopify-theme/blocks/avatar.liquid +0 -56
- package/templates/shopify-theme/blocks/badge.liquid +0 -33
- package/templates/shopify-theme/blocks/breadcrumb.liquid +0 -45
- package/templates/shopify-theme/blocks/button.liquid +0 -51
- package/templates/shopify-theme/blocks/buttons.liquid +0 -41
- package/templates/shopify-theme/blocks/card.liquid +0 -67
- package/templates/shopify-theme/blocks/carousel.liquid +0 -55
- package/templates/shopify-theme/blocks/column.liquid +0 -33
- package/templates/shopify-theme/blocks/image.liquid +0 -37
- package/templates/shopify-theme/blocks/modal.liquid +0 -52
- package/templates/shopify-theme/blocks/popover.liquid +0 -24
- package/templates/shopify-theme/blocks/skeleton.liquid +0 -22
- package/templates/shopify-theme/blocks/spinner.liquid +0 -22
- package/templates/shopify-theme/blocks/split.liquid +0 -39
- package/templates/shopify-theme/blocks/tab.liquid +0 -19
- package/templates/shopify-theme/blocks/tabs.liquid +0 -78
- package/templates/shopify-theme/blocks/tags.liquid +0 -55
- package/templates/shopify-theme/blocks/text.liquid +0 -55
- package/templates/shopify-theme/blocks/tooltip.liquid +0 -50
- package/templates/shopify-theme/blocks/typography.liquid +0 -90
- package/templates/shopify-theme/config/settings_data.json +0 -4
- package/templates/shopify-theme/config/settings_schema.json +0 -10
- package/templates/shopify-theme/layout/theme.liquid +0 -21
- package/templates/shopify-theme/locales/en.default.json +0 -5
- package/templates/shopify-theme/locales/en.default.schema.json +0 -131
- package/templates/shopify-theme/package.json +0 -21
- package/templates/shopify-theme/scripts/sync-tokens.mjs +0 -32
- package/templates/shopify-theme/sections/baseline-components.liquid +0 -81
- package/templates/shopify-theme/skills-lock.json +0 -23
- package/templates/shopify-theme/snippets/lucide.liquid +0 -34
- package/templates/shopify-theme/snippets/pagination.liquid +0 -44
- package/templates/shopify-theme/templates/collection.json +0 -13
- package/templates/shopify-theme/templates/gift_card.liquid +0 -5
- package/templates/shopify-theme/templates/index.json +0 -135
- package/templates/shopify-theme/templates/list-collections.json +0 -13
- package/templates/shopify-theme/templates/product.json +0 -13
- package/templates/wordpress/.claude/CLAUDE.md +0 -37
- package/templates/wordpress/.claude/skills/wp-block-development/SKILL.md +0 -174
- package/templates/wordpress/.claude/skills/wp-block-development/references/attributes-and-serialization.md +0 -22
- package/templates/wordpress/.claude/skills/wp-block-development/references/block-json.md +0 -49
- package/templates/wordpress/.claude/skills/wp-block-development/references/creating-new-blocks.md +0 -46
- package/templates/wordpress/.claude/skills/wp-block-development/references/debugging.md +0 -36
- package/templates/wordpress/.claude/skills/wp-block-development/references/deprecations.md +0 -24
- package/templates/wordpress/.claude/skills/wp-block-development/references/dynamic-rendering.md +0 -23
- package/templates/wordpress/.claude/skills/wp-block-development/references/inner-blocks.md +0 -25
- package/templates/wordpress/.claude/skills/wp-block-development/references/registration.md +0 -30
- package/templates/wordpress/.claude/skills/wp-block-development/references/supports-and-wrappers.md +0 -18
- package/templates/wordpress/.claude/skills/wp-block-development/references/tooling-and-testing.md +0 -21
- package/templates/wordpress/.claude/skills/wp-block-development/scripts/list_blocks.mjs +0 -121
- package/templates/wordpress/.claude/skills/wp-block-themes/SKILL.md +0 -116
- package/templates/wordpress/.claude/skills/wp-block-themes/references/creating-new-block-theme.md +0 -37
- package/templates/wordpress/.claude/skills/wp-block-themes/references/debugging.md +0 -24
- package/templates/wordpress/.claude/skills/wp-block-themes/references/patterns.md +0 -18
- package/templates/wordpress/.claude/skills/wp-block-themes/references/style-variations.md +0 -14
- package/templates/wordpress/.claude/skills/wp-block-themes/references/templates-and-parts.md +0 -16
- package/templates/wordpress/.claude/skills/wp-block-themes/references/theme-json.md +0 -59
- package/templates/wordpress/.claude/skills/wp-block-themes/scripts/detect_block_themes.mjs +0 -117
- package/templates/wordpress/.claude/skills/wp-performance/SKILL.md +0 -146
- package/templates/wordpress/.claude/skills/wp-performance/references/autoload-options.md +0 -24
- package/templates/wordpress/.claude/skills/wp-performance/references/cron.md +0 -20
- package/templates/wordpress/.claude/skills/wp-performance/references/database.md +0 -20
- package/templates/wordpress/.claude/skills/wp-performance/references/http-api.md +0 -15
- package/templates/wordpress/.claude/skills/wp-performance/references/measurement.md +0 -21
- package/templates/wordpress/.claude/skills/wp-performance/references/object-cache.md +0 -24
- package/templates/wordpress/.claude/skills/wp-performance/references/query-monitor-headless.md +0 -38
- package/templates/wordpress/.claude/skills/wp-performance/references/server-timing.md +0 -22
- package/templates/wordpress/.claude/skills/wp-performance/references/wp-cli-doctor.md +0 -24
- package/templates/wordpress/.claude/skills/wp-performance/references/wp-cli-profile.md +0 -32
- package/templates/wordpress/.claude/skills/wp-performance/scripts/perf_inspect.mjs +0 -128
- package/templates/wordpress/.claude/skills/wp-plugin-development/SKILL.md +0 -112
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/data-and-cron.md +0 -19
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/debugging.md +0 -19
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/lifecycle.md +0 -33
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/security.md +0 -29
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/settings-api.md +0 -22
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/structure.md +0 -16
- package/templates/wordpress/.claude/skills/wp-plugin-development/scripts/detect_plugins.mjs +0 -122
- package/templates/wordpress/.claude/skills/wp-rest-api/SKILL.md +0 -114
- package/templates/wordpress/.claude/skills/wp-rest-api/references/authentication.md +0 -18
- package/templates/wordpress/.claude/skills/wp-rest-api/references/custom-content-types.md +0 -20
- package/templates/wordpress/.claude/skills/wp-rest-api/references/discovery-and-params.md +0 -20
- package/templates/wordpress/.claude/skills/wp-rest-api/references/responses-and-fields.md +0 -30
- package/templates/wordpress/.claude/skills/wp-rest-api/references/routes-and-endpoints.md +0 -36
- package/templates/wordpress/.claude/skills/wp-rest-api/references/schema.md +0 -22
- package/templates/wordpress/.ddev/docker-compose.packages.yaml +0 -14
- package/templates/wordpress/.ddev/docker-compose.redis.yaml +0 -11
- package/templates/wordpress/.env.example +0 -33
- package/templates/wordpress/CLAUDE.md +0 -34
- package/templates/wordpress/_gitignore +0 -33
- package/templates/wordpress/composer.lock +0 -1594
- package/templates/wordpress/package.json +0 -13
- package/templates/wordpress/scripts/seed.sh +0 -64
- package/templates/wordpress/skills-lock.json +0 -35
- package/templates/wordpress/wp-config.php +0 -89
- package/templates/wordpress/wp-content/index.php +0 -2
- package/templates/wordpress/wp-content/mu-plugins/baseline-bootstrap.php +0 -26
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Modal footer — the action row of the Modal (.gcds-modal__footer, styled by modal.css:
|
|
3
|
-
reversed stack on mobile, right-aligned row from sm up). The Close button uses a
|
|
4
|
-
native <form method="dialog"> so it dismisses the ancestor <dialog> with zero JS and
|
|
5
|
-
no id wiring (a nested child can't reference the parent dialog's id). An optional
|
|
6
|
-
primary action (label + link) sits beside it. PRIVATE block — only inside Modal.
|
|
7
|
-
{%- endcomment -%}
|
|
8
|
-
<footer class="gcds-modal__footer" {{ block.shopify_attributes }}>
|
|
9
|
-
<form method="dialog" class="gcds-modal__footer-close">
|
|
10
|
-
<button class="gcds-button gcds-button--ghost gcds-button--md">
|
|
11
|
-
{{- block.settings.close_label | default: 'Close' | escape -}}
|
|
12
|
-
</button>
|
|
13
|
-
</form>
|
|
14
|
-
{%- if block.settings.action_label != blank -%}
|
|
15
|
-
<a class="gcds-button gcds-button--primary gcds-button--md"{% if block.settings.action_url != blank %} href="{{ block.settings.action_url }}"{% endif %}>
|
|
16
|
-
{{- block.settings.action_label | escape -}}
|
|
17
|
-
</a>
|
|
18
|
-
{%- endif -%}
|
|
19
|
-
</footer>
|
|
20
|
-
|
|
21
|
-
{% stylesheet %}
|
|
22
|
-
/* Let the native close-form's button participate in the footer flex row directly. */
|
|
23
|
-
.gcds-modal__footer-close { display: contents; }
|
|
24
|
-
{% endstylesheet %}
|
|
25
|
-
|
|
26
|
-
{% schema %}
|
|
27
|
-
{
|
|
28
|
-
"name": "t:blocks.modal_footer_name",
|
|
29
|
-
"settings": [
|
|
30
|
-
{ "type": "text", "id": "close_label", "label": "t:settings.close_label", "default": "Close" },
|
|
31
|
-
{ "type": "text", "id": "action_label", "label": "t:settings.action_label" },
|
|
32
|
-
{ "type": "url", "id": "action_url", "label": "t:settings.action_url" }
|
|
33
|
-
],
|
|
34
|
-
"presets": [{ "name": "t:blocks.modal_footer_name" }]
|
|
35
|
-
}
|
|
36
|
-
{% endschema %}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Modal header — title + description for the Modal (.gcds-modal__header, styled by
|
|
3
|
-
modal.css). PRIVATE block — only insertable inside Modal.
|
|
4
|
-
{%- endcomment -%}
|
|
5
|
-
<header class="gcds-modal__header" {{ block.shopify_attributes }}>
|
|
6
|
-
{%- if block.settings.title != blank -%}<h2 class="gcds-modal__title">{{ block.settings.title | escape }}</h2>{%- endif -%}
|
|
7
|
-
{%- if block.settings.content != blank -%}<div class="gcds-modal__description">{{ block.settings.content }}</div>{%- endif -%}
|
|
8
|
-
</header>
|
|
9
|
-
|
|
10
|
-
{% schema %}
|
|
11
|
-
{
|
|
12
|
-
"name": "t:blocks.modal_header_name",
|
|
13
|
-
"settings": [
|
|
14
|
-
{ "type": "text", "id": "title", "label": "t:settings.title", "default": "Modal title" },
|
|
15
|
-
{ "type": "inline_richtext", "id": "content", "label": "t:settings.description", "default": "A short supporting line." }
|
|
16
|
-
],
|
|
17
|
-
"presets": [{ "name": "t:blocks.modal_header_name" }]
|
|
18
|
-
}
|
|
19
|
-
{% endschema %}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Modal media — a full-bleed image or video at an edge of the Modal (.gcds-modal__media,
|
|
3
|
-
styled by modal.css). As the dialog's :first-child it meets the top edge with no top
|
|
4
|
-
padding. Video (hosted or external URL) takes precedence over the image when both are
|
|
5
|
-
set. PRIVATE block — only insertable inside Modal (mirrors _carousel-slide).
|
|
6
|
-
{%- endcomment -%}
|
|
7
|
-
<div class="gcds-modal__media" {{ block.shopify_attributes }}>
|
|
8
|
-
{%- if block.settings.video != blank -%}
|
|
9
|
-
{{ block.settings.video | video_tag: image_size: '1200x', controls: true, playsinline: true }}
|
|
10
|
-
{%- elsif block.settings.video_url != blank -%}
|
|
11
|
-
<video src="{{ block.settings.video_url }}" controls playsinline></video>
|
|
12
|
-
{%- elsif block.settings.image != blank -%}
|
|
13
|
-
<img
|
|
14
|
-
src="{{ block.settings.image | image_url: width: 1200 }}"
|
|
15
|
-
srcset="{{ block.settings.image | image_url: width: 700 }} 700w, {{ block.settings.image | image_url: width: 1400 }} 1400w"
|
|
16
|
-
sizes="(min-width: 40rem) 32rem, 100vw"
|
|
17
|
-
alt="{{ block.settings.image.alt | escape }}"
|
|
18
|
-
width="{{ block.settings.image.width }}"
|
|
19
|
-
height="{{ block.settings.image.height }}"
|
|
20
|
-
loading="lazy"
|
|
21
|
-
>
|
|
22
|
-
{%- else -%}
|
|
23
|
-
{{ 'image' | placeholder_svg_tag }}
|
|
24
|
-
{%- endif -%}
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
{% schema %}
|
|
28
|
-
{
|
|
29
|
-
"name": "t:blocks.modal_media_name",
|
|
30
|
-
"settings": [
|
|
31
|
-
{ "type": "image_picker", "id": "image", "label": "t:settings.image" },
|
|
32
|
-
{ "type": "video", "id": "video", "label": "t:settings.video" },
|
|
33
|
-
{ "type": "url", "id": "video_url", "label": "t:settings.video_url" }
|
|
34
|
-
],
|
|
35
|
-
"presets": [{ "name": "t:blocks.modal_media_name" }]
|
|
36
|
-
}
|
|
37
|
-
{% endschema %}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Accordion group — stacks Accordion items with the group gap (.gcds-accordion-group,
|
|
3
|
-
styled by accordion.css) and accepts ONLY accordion blocks, mirroring the React
|
|
4
|
-
Accordion.Group. For single-open behaviour, give the child items a shared "group"
|
|
5
|
-
value — Shopify theme blocks can't cascade settings to children, so the name is
|
|
6
|
-
set per item (the platform-honest equivalent of the shared `name` attribute).
|
|
7
|
-
|
|
8
|
-
The "variant" setting DOES flow down to the items: gcds-accordion-group--text
|
|
9
|
-
restyles children via inherited CSS custom properties, so the items don't need
|
|
10
|
-
their own variant set.
|
|
11
|
-
{%- endcomment -%}
|
|
12
|
-
<div
|
|
13
|
-
class="gcds-accordion-group{% if block.settings.variant == 'text' %} gcds-accordion-group--text{% endif %}"
|
|
14
|
-
{{ block.shopify_attributes }}
|
|
15
|
-
>
|
|
16
|
-
{% content_for 'blocks' %}
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
{% schema %}
|
|
20
|
-
{
|
|
21
|
-
"name": "t:blocks.accordion_group_name",
|
|
22
|
-
"blocks": [{ "type": "_accordion" }],
|
|
23
|
-
"settings": [
|
|
24
|
-
{
|
|
25
|
-
"type": "select",
|
|
26
|
-
"id": "variant",
|
|
27
|
-
"label": "t:settings.variant",
|
|
28
|
-
"options": [
|
|
29
|
-
{ "value": "block", "label": "t:variant.block" },
|
|
30
|
-
{ "value": "text", "label": "t:variant.text" }
|
|
31
|
-
],
|
|
32
|
-
"default": "block"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"presets": [
|
|
36
|
-
{
|
|
37
|
-
"name": "t:blocks.accordion_group_name",
|
|
38
|
-
"blocks": [
|
|
39
|
-
{
|
|
40
|
-
"type": "_accordion",
|
|
41
|
-
"settings": { "heading": "Question one", "open": true },
|
|
42
|
-
"blocks": [{ "type": "text", "settings": { "heading": "", "body": "Add the answer to this question here." } }]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "_accordion",
|
|
46
|
-
"settings": { "heading": "Question two" },
|
|
47
|
-
"blocks": [{ "type": "text", "settings": { "heading": "", "body": "Add the answer to this question here." } }]
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
{% endschema %}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Alert — an inline feedback callout (.gcds-alert). Styled by alert.css in baseline.css;
|
|
3
|
-
mirrors the React Alert + HTML contract. Variants (default/error/success/warning)
|
|
4
|
-
recolor text, icon + description.
|
|
5
|
-
|
|
6
|
-
- Title = plain text; content = richtext (both merchant-supplied via settings).
|
|
7
|
-
- Icon = a Lucide glyph (snippets/lucide.liquid). "Auto" follows the variant; pick a
|
|
8
|
-
specific one, or "None" to hide it. It inherits the variant color (currentColor).
|
|
9
|
-
- Actions = a nested slot that accepts Button blocks only, pinned top-right. Give the
|
|
10
|
-
button the xs size + the variant matching the alert (error/success/warning, else
|
|
11
|
-
outline) so it reads on the tinted surface.
|
|
12
|
-
- No role: this is a STATIC, merchant-placed editorial callout (presentational; screen
|
|
13
|
-
readers read its content). role="alert" would be wrong — it's an assertive live region
|
|
14
|
-
that only announces on dynamic insertion/change; a storefront alert rendered at page
|
|
15
|
-
load isn't dynamic. (For genuine runtime status — cart/checkout/form results — use a
|
|
16
|
-
persistent role="status"/"alert" live region in that flow, updated by JS, not this block.)
|
|
17
|
-
{%- endcomment -%}
|
|
18
|
-
{%- liquid
|
|
19
|
-
assign variant = block.settings.variant | default: 'default'
|
|
20
|
-
assign icon = block.settings.icon | default: 'auto'
|
|
21
|
-
if icon == 'auto'
|
|
22
|
-
case variant
|
|
23
|
-
when 'success'
|
|
24
|
-
assign icon = 'circle-check'
|
|
25
|
-
when 'warning'
|
|
26
|
-
assign icon = 'triangle-alert'
|
|
27
|
-
when 'error'
|
|
28
|
-
assign icon = 'octagon-alert'
|
|
29
|
-
else
|
|
30
|
-
assign icon = 'info'
|
|
31
|
-
endcase
|
|
32
|
-
endif
|
|
33
|
-
-%}
|
|
34
|
-
<div
|
|
35
|
-
class="gcds-alert{% unless variant == 'default' %} gcds-alert--{{ variant }}{% endunless %}"
|
|
36
|
-
{{ block.shopify_attributes }}
|
|
37
|
-
>
|
|
38
|
-
{%- unless icon == 'none' -%}{% render 'lucide', icon: icon %}{%- endunless -%}
|
|
39
|
-
{%- if block.settings.title != blank -%}
|
|
40
|
-
<div class="gcds-alert__title">{{ block.settings.title | escape }}</div>
|
|
41
|
-
{%- endif -%}
|
|
42
|
-
{%- if block.settings.content != blank -%}
|
|
43
|
-
<div class="gcds-alert__description">{{ block.settings.content }}</div>
|
|
44
|
-
{%- endif -%}
|
|
45
|
-
<div class="gcds-alert__action">{% content_for 'blocks' %}</div>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
{% schema %}
|
|
49
|
-
{
|
|
50
|
-
"name": "t:blocks.alert_name",
|
|
51
|
-
"settings": [
|
|
52
|
-
{
|
|
53
|
-
"type": "select",
|
|
54
|
-
"id": "variant",
|
|
55
|
-
"label": "t:settings.variant",
|
|
56
|
-
"default": "default",
|
|
57
|
-
"options": [
|
|
58
|
-
{ "value": "default", "label": "t:variant.default" },
|
|
59
|
-
{ "value": "error", "label": "t:variant.error" },
|
|
60
|
-
{ "value": "success", "label": "t:variant.success" },
|
|
61
|
-
{ "value": "warning", "label": "t:variant.warning" }
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"type": "select",
|
|
66
|
-
"id": "icon",
|
|
67
|
-
"label": "t:settings.icon",
|
|
68
|
-
"info": "t:settings.icon_info",
|
|
69
|
-
"default": "auto",
|
|
70
|
-
"options": [
|
|
71
|
-
{ "value": "auto", "label": "t:icon.auto" },
|
|
72
|
-
{ "value": "none", "label": "t:icon.none" },
|
|
73
|
-
{ "value": "info", "label": "t:icon.info" },
|
|
74
|
-
{ "value": "circle-check", "label": "t:icon.circle-check" },
|
|
75
|
-
{ "value": "circle-alert", "label": "t:icon.circle-alert" },
|
|
76
|
-
{ "value": "circle-x", "label": "t:icon.circle-x" },
|
|
77
|
-
{ "value": "triangle-alert", "label": "t:icon.triangle-alert" },
|
|
78
|
-
{ "value": "octagon-alert", "label": "t:icon.octagon-alert" },
|
|
79
|
-
{ "value": "shield-alert", "label": "t:icon.shield-alert" },
|
|
80
|
-
{ "value": "bell", "label": "t:icon.bell" },
|
|
81
|
-
{ "value": "star", "label": "t:icon.star" },
|
|
82
|
-
{ "value": "zap", "label": "t:icon.zap" },
|
|
83
|
-
{ "value": "lightbulb", "label": "t:icon.lightbulb" }
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
{ "type": "text", "id": "title", "label": "t:settings.title", "default": "Heads up" },
|
|
87
|
-
{ "type": "richtext", "id": "content", "label": "t:settings.content", "default": "<p>This is an informational message.</p>" }
|
|
88
|
-
],
|
|
89
|
-
"blocks": [{ "type": "button" }],
|
|
90
|
-
"presets": [{ "name": "t:blocks.alert_name" }]
|
|
91
|
-
}
|
|
92
|
-
{% endschema %}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Avatar group — an overlapping stack of avatars (.gcds-avatar-group, styled by
|
|
3
|
-
avatar.css). Accepts Avatar blocks; a ring in the surface color separates the
|
|
4
|
-
circles. Mirrors the React Avatar.Group. The optional overflow count (+N) renders
|
|
5
|
-
as a trailing .gcds-avatar-group__count and auto-matches the group's avatar size.
|
|
6
|
-
|
|
7
|
-
A group-level `size` sizes every child at once (.gcds-avatar-group--sm/lg wins over
|
|
8
|
-
a per-item size, per avatar.css) — leave it at default to let items keep their own.
|
|
9
|
-
{%- endcomment -%}
|
|
10
|
-
{%- assign size = block.settings.size | default: 'default' -%}
|
|
11
|
-
<div
|
|
12
|
-
class="gcds-avatar-group{% unless size == 'default' %} gcds-avatar-group--{{ size }}{% endunless %}"
|
|
13
|
-
{{ block.shopify_attributes }}
|
|
14
|
-
>
|
|
15
|
-
{% content_for 'blocks' %}
|
|
16
|
-
{%- if block.settings.count > 0 -%}
|
|
17
|
-
<span class="gcds-avatar gcds-avatar-group__count">+{{ block.settings.count }}</span>
|
|
18
|
-
{%- endif -%}
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
{% schema %}
|
|
22
|
-
{
|
|
23
|
-
"name": "t:blocks.avatar_group_name",
|
|
24
|
-
"blocks": [{ "type": "avatar" }],
|
|
25
|
-
"settings": [
|
|
26
|
-
{
|
|
27
|
-
"type": "select",
|
|
28
|
-
"id": "size",
|
|
29
|
-
"label": "t:settings.size",
|
|
30
|
-
"default": "default",
|
|
31
|
-
"options": [
|
|
32
|
-
{ "value": "sm", "label": "t:size.small" },
|
|
33
|
-
{ "value": "default", "label": "t:size.medium" },
|
|
34
|
-
{ "value": "lg", "label": "t:size.large" }
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{ "type": "number", "id": "count", "label": "t:settings.count" }
|
|
38
|
-
],
|
|
39
|
-
"presets": [
|
|
40
|
-
{
|
|
41
|
-
"name": "t:blocks.avatar_group_name",
|
|
42
|
-
"settings": { "count": 3 },
|
|
43
|
-
"blocks": [
|
|
44
|
-
{ "type": "avatar", "settings": { "fallback": "AB" } },
|
|
45
|
-
{ "type": "avatar", "settings": { "fallback": "CD" } },
|
|
46
|
-
{ "type": "avatar", "settings": { "fallback": "EF" } }
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
{% endschema %}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Avatar — a circular image with a fallback (.gcds-avatar). Styled by avatar.css in
|
|
3
|
-
baseline.css; mirrors the React Avatar + HTML contract. Sizes sm/default/lg. Merchant
|
|
4
|
-
supplies an image (or fallback initials) + size via settings. An optional corner
|
|
5
|
-
Badge (a notification/presence dot — primary by default, or a status color) composes
|
|
6
|
-
as a child, same as Avatar.Badge in React. Usable standalone or inside an Avatar group.
|
|
7
|
-
{%- endcomment -%}
|
|
8
|
-
{%- assign size = block.settings.size | default: 'default' -%}
|
|
9
|
-
<span
|
|
10
|
-
class="gcds-avatar{% unless size == 'default' %} gcds-avatar--{{ size }}{% endunless %}"
|
|
11
|
-
{{ block.shopify_attributes }}
|
|
12
|
-
>
|
|
13
|
-
{%- if block.settings.image != blank -%}
|
|
14
|
-
<img class="gcds-avatar__image" src="{{ block.settings.image | image_url: width: 128 }}" alt="{{ block.settings.image.alt | escape }}" width="64" height="64" />
|
|
15
|
-
{%- else -%}
|
|
16
|
-
<span class="gcds-avatar__fallback">{{ block.settings.fallback | escape }}</span>
|
|
17
|
-
{%- endif -%}
|
|
18
|
-
{%- unless block.settings.badge == 'none' -%}
|
|
19
|
-
<span class="gcds-avatar__badge{% unless block.settings.badge == 'default' %} gcds-avatar__badge--{{ block.settings.badge }}{% endunless %}"></span>
|
|
20
|
-
{%- endunless -%}
|
|
21
|
-
</span>
|
|
22
|
-
|
|
23
|
-
{% schema %}
|
|
24
|
-
{
|
|
25
|
-
"name": "t:blocks.avatar_name",
|
|
26
|
-
"settings": [
|
|
27
|
-
{ "type": "image_picker", "id": "image", "label": "t:settings.image" },
|
|
28
|
-
{ "type": "text", "id": "fallback", "label": "t:settings.fallback", "default": "JD" },
|
|
29
|
-
{
|
|
30
|
-
"type": "select",
|
|
31
|
-
"id": "size",
|
|
32
|
-
"label": "t:settings.size",
|
|
33
|
-
"default": "default",
|
|
34
|
-
"options": [
|
|
35
|
-
{ "value": "sm", "label": "t:size.small" },
|
|
36
|
-
{ "value": "default", "label": "t:size.medium" },
|
|
37
|
-
{ "value": "lg", "label": "t:size.large" }
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"type": "select",
|
|
42
|
-
"id": "badge",
|
|
43
|
-
"label": "t:settings.badge",
|
|
44
|
-
"default": "none",
|
|
45
|
-
"options": [
|
|
46
|
-
{ "value": "none", "label": "t:variant.none" },
|
|
47
|
-
{ "value": "default", "label": "t:variant.primary" },
|
|
48
|
-
{ "value": "success", "label": "t:variant.success" },
|
|
49
|
-
{ "value": "warning", "label": "t:variant.warning" },
|
|
50
|
-
{ "value": "error", "label": "t:variant.error" }
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"presets": [{ "name": "t:blocks.avatar_name" }]
|
|
55
|
-
}
|
|
56
|
-
{% endschema %}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Badge — a compact status/label pill (.gcds-badge). Styled by badge.css in
|
|
3
|
-
baseline.css; mirrors the React Badge + HTML contract. Merchant supplies the label
|
|
4
|
-
+ variant via settings (the platform's content mechanism).
|
|
5
|
-
{%- endcomment -%}
|
|
6
|
-
{%- assign variant = block.settings.variant | default: 'primary' -%}
|
|
7
|
-
<span class="gcds-badge gcds-badge--{{ variant }}" {{ block.shopify_attributes }}>
|
|
8
|
-
{{- block.settings.label | escape -}}
|
|
9
|
-
</span>
|
|
10
|
-
|
|
11
|
-
{% schema %}
|
|
12
|
-
{
|
|
13
|
-
"name": "t:blocks.badge_name",
|
|
14
|
-
"settings": [
|
|
15
|
-
{ "type": "text", "id": "label", "label": "t:settings.label", "default": "Badge" },
|
|
16
|
-
{
|
|
17
|
-
"type": "select",
|
|
18
|
-
"id": "variant",
|
|
19
|
-
"label": "t:settings.variant",
|
|
20
|
-
"default": "primary",
|
|
21
|
-
"options": [
|
|
22
|
-
{ "value": "primary", "label": "t:variant.primary" },
|
|
23
|
-
{ "value": "secondary", "label": "t:variant.secondary" },
|
|
24
|
-
{ "value": "outline", "label": "t:variant.outline" },
|
|
25
|
-
{ "value": "error", "label": "t:variant.error" },
|
|
26
|
-
{ "value": "success", "label": "t:variant.success" },
|
|
27
|
-
{ "value": "warning", "label": "t:variant.warning" }
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"presets": [{ "name": "t:blocks.badge_name" }]
|
|
32
|
-
}
|
|
33
|
-
{% endschema %}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Breadcrumb — auto-generates the trail from the current page (.gcds-breadcrumb).
|
|
3
|
-
Styled by breadcrumb.css in baseline.css. No settings beyond the home label; the
|
|
4
|
-
crumbs are derived from request.page_type + the current object. Zero JS.
|
|
5
|
-
{%- endcomment -%}
|
|
6
|
-
{%- assign home = block.settings.home_label | default: 'Home' -%}
|
|
7
|
-
{%- capture sep -%}<li class="gcds-breadcrumb__separator" role="presentation" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></svg></li>{%- endcapture -%}
|
|
8
|
-
<nav class="gcds-breadcrumb" aria-label="Breadcrumb" {{ block.shopify_attributes }}>
|
|
9
|
-
<ol class="gcds-breadcrumb__list">
|
|
10
|
-
{%- if request.page_type == 'index' -%}
|
|
11
|
-
<li class="gcds-breadcrumb__item"><span class="gcds-breadcrumb__page" role="link" aria-disabled="true" aria-current="page">{{ home | escape }}</span></li>
|
|
12
|
-
{%- else -%}
|
|
13
|
-
<li class="gcds-breadcrumb__item"><a class="gcds-breadcrumb__link" href="{{ routes.root_url }}">{{ home | escape }}</a></li>
|
|
14
|
-
{%- case request.page_type -%}
|
|
15
|
-
{%- when 'product' -%}
|
|
16
|
-
{%- assign col = product.collections.first -%}
|
|
17
|
-
{%- if col -%}
|
|
18
|
-
{{ sep }}<li class="gcds-breadcrumb__item"><a class="gcds-breadcrumb__link" href="{{ col.url }}">{{ col.title | escape }}</a></li>
|
|
19
|
-
{%- endif -%}
|
|
20
|
-
{{ sep }}<li class="gcds-breadcrumb__item"><span class="gcds-breadcrumb__page" role="link" aria-disabled="true" aria-current="page">{{ product.title | escape }}</span></li>
|
|
21
|
-
{%- when 'collection' -%}
|
|
22
|
-
{{ sep }}<li class="gcds-breadcrumb__item"><span class="gcds-breadcrumb__page" role="link" aria-disabled="true" aria-current="page">{{ collection.title | escape }}</span></li>
|
|
23
|
-
{%- when 'page' -%}
|
|
24
|
-
{{ sep }}<li class="gcds-breadcrumb__item"><span class="gcds-breadcrumb__page" role="link" aria-disabled="true" aria-current="page">{{ page.title | escape }}</span></li>
|
|
25
|
-
{%- when 'article' -%}
|
|
26
|
-
{{ sep }}<li class="gcds-breadcrumb__item"><a class="gcds-breadcrumb__link" href="{{ blog.url }}">{{ blog.title | escape }}</a></li>
|
|
27
|
-
{{ sep }}<li class="gcds-breadcrumb__item"><span class="gcds-breadcrumb__page" role="link" aria-disabled="true" aria-current="page">{{ article.title | escape }}</span></li>
|
|
28
|
-
{%- when 'blog' -%}
|
|
29
|
-
{{ sep }}<li class="gcds-breadcrumb__item"><span class="gcds-breadcrumb__page" role="link" aria-disabled="true" aria-current="page">{{ blog.title | escape }}</span></li>
|
|
30
|
-
{%- else -%}
|
|
31
|
-
{{ sep }}<li class="gcds-breadcrumb__item"><span class="gcds-breadcrumb__page" role="link" aria-disabled="true" aria-current="page">{{ page_title | escape }}</span></li>
|
|
32
|
-
{%- endcase -%}
|
|
33
|
-
{%- endif -%}
|
|
34
|
-
</ol>
|
|
35
|
-
</nav>
|
|
36
|
-
|
|
37
|
-
{% schema %}
|
|
38
|
-
{
|
|
39
|
-
"name": "t:blocks.breadcrumb_name",
|
|
40
|
-
"settings": [
|
|
41
|
-
{ "type": "text", "id": "home_label", "label": "t:settings.home_label", "default": "Home" }
|
|
42
|
-
],
|
|
43
|
-
"presets": [{ "name": "t:blocks.breadcrumb_name" }]
|
|
44
|
-
}
|
|
45
|
-
{% endschema %}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{%- liquid
|
|
2
|
-
assign variant = block.settings.variant | default: 'primary'
|
|
3
|
-
assign size = block.settings.size | default: 'md'
|
|
4
|
-
assign classes = 'gcds-button gcds-button--' | append: variant | append: ' gcds-button--' | append: size
|
|
5
|
-
-%}
|
|
6
|
-
{%- if block.settings.url != blank -%}
|
|
7
|
-
<a class="{{ classes }}" href="{{ block.settings.url }}" {{ block.shopify_attributes }}>
|
|
8
|
-
{{- block.settings.label | escape -}}
|
|
9
|
-
</a>
|
|
10
|
-
{%- else -%}
|
|
11
|
-
<button type="button" class="{{ classes }}" {{ block.shopify_attributes }}>
|
|
12
|
-
{{- block.settings.label | escape -}}
|
|
13
|
-
</button>
|
|
14
|
-
{%- endif -%}
|
|
15
|
-
|
|
16
|
-
{% schema %}
|
|
17
|
-
{
|
|
18
|
-
"name": "t:blocks.button_name",
|
|
19
|
-
"settings": [
|
|
20
|
-
{ "type": "text", "id": "label", "label": "t:settings.label", "default": "Button" },
|
|
21
|
-
{ "type": "url", "id": "url", "label": "t:settings.url" },
|
|
22
|
-
{
|
|
23
|
-
"type": "select",
|
|
24
|
-
"id": "variant",
|
|
25
|
-
"label": "t:settings.variant",
|
|
26
|
-
"default": "primary",
|
|
27
|
-
"options": [
|
|
28
|
-
{ "value": "primary", "label": "t:variant.primary" },
|
|
29
|
-
{ "value": "secondary", "label": "t:variant.secondary" },
|
|
30
|
-
{ "value": "outline", "label": "t:variant.outline" },
|
|
31
|
-
{ "value": "ghost", "label": "t:variant.ghost" },
|
|
32
|
-
{ "value": "error", "label": "t:variant.error" },
|
|
33
|
-
{ "value": "success", "label": "t:variant.success" },
|
|
34
|
-
{ "value": "warning", "label": "t:variant.warning" }
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"type": "select",
|
|
39
|
-
"id": "size",
|
|
40
|
-
"label": "t:settings.size",
|
|
41
|
-
"default": "md",
|
|
42
|
-
"options": [
|
|
43
|
-
{ "value": "sm", "label": "t:size.small" },
|
|
44
|
-
{ "value": "md", "label": "t:size.medium" },
|
|
45
|
-
{ "value": "lg", "label": "t:size.large" }
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"presets": [{ "name": "t:blocks.button_name" }]
|
|
50
|
-
}
|
|
51
|
-
{% endschema %}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Buttons — a container that ONLY accepts Button blocks ("blocks": [{ "type": "button" }]),
|
|
3
|
-
mirroring WordPress's wp:buttons → wp:button lock. Renders its children with
|
|
4
|
-
{% content_for 'blocks' %}. Layout only; the button look comes from the gcds-button
|
|
5
|
-
tokens in baseline.css.
|
|
6
|
-
{%- endcomment -%}
|
|
7
|
-
<div class="gcds-button-group" {{ block.shopify_attributes }}>
|
|
8
|
-
{%- if block.settings.heading != blank -%}
|
|
9
|
-
<h3 class="gcds-button-group__heading">{{ block.settings.heading | escape }}</h3>
|
|
10
|
-
{%- endif -%}
|
|
11
|
-
<div class="gcds-button-group__items">
|
|
12
|
-
{% content_for 'blocks' %}
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
{% stylesheet %}
|
|
17
|
-
.gcds-button-group { margin-block: var(--gcds-space-6, 1.5rem); }
|
|
18
|
-
.gcds-button-group__heading { margin: 0 0 var(--gcds-space-3, 0.75rem); }
|
|
19
|
-
.gcds-button-group__items {
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-wrap: wrap;
|
|
22
|
-
align-items: center;
|
|
23
|
-
gap: var(--gcds-space-3, 0.75rem);
|
|
24
|
-
}
|
|
25
|
-
{% endstylesheet %}
|
|
26
|
-
|
|
27
|
-
{% schema %}
|
|
28
|
-
{
|
|
29
|
-
"name": "t:blocks.buttons_name",
|
|
30
|
-
"settings": [
|
|
31
|
-
{ "type": "text", "id": "heading", "label": "t:settings.heading" }
|
|
32
|
-
],
|
|
33
|
-
"blocks": [{ "type": "button" }],
|
|
34
|
-
"presets": [
|
|
35
|
-
{
|
|
36
|
-
"name": "t:blocks.buttons_name",
|
|
37
|
-
"blocks": [{ "type": "button" }, { "type": "button" }]
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
{% endschema %}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Card — a token-driven surface composed from regions (.gcds-card). Styled by card.css
|
|
3
|
-
in baseline.css; mirrors the React Card + HTML contract.
|
|
4
|
-
|
|
5
|
-
- Media = an optional image_picker (merchant content), full-bleed, clipped to the radius.
|
|
6
|
-
- Header = optional title/description text settings (the platform's content mechanism).
|
|
7
|
-
- Content = a SLOT ({% content_for 'blocks' %}): the card holds arbitrary nested theme
|
|
8
|
-
blocks (text, image, buttons, badge…), so it's not limited to one richtext field.
|
|
9
|
-
The wrapping .gcds-card__content gives them the region's horizontal padding.
|
|
10
|
-
- Footer = an optional CTA (label + url), pinned as the action row.
|
|
11
|
-
{%- endcomment -%}
|
|
12
|
-
<div class="gcds-card" {{ block.shopify_attributes }}>
|
|
13
|
-
{%- if block.settings.image != blank -%}
|
|
14
|
-
<div class="gcds-card__media">
|
|
15
|
-
{{ block.settings.image | image_url: width: 800 | image_tag: alt: block.settings.title }}
|
|
16
|
-
</div>
|
|
17
|
-
{%- endif -%}
|
|
18
|
-
|
|
19
|
-
{%- if block.settings.title != blank or block.settings.description != blank -%}
|
|
20
|
-
<div class="gcds-card__header">
|
|
21
|
-
{%- if block.settings.title != blank -%}
|
|
22
|
-
<h3 class="gcds-card__title">{{ block.settings.title | escape }}</h3>
|
|
23
|
-
{%- endif -%}
|
|
24
|
-
{%- if block.settings.description != blank -%}
|
|
25
|
-
<p class="gcds-card__description">{{ block.settings.description | escape }}</p>
|
|
26
|
-
{%- endif -%}
|
|
27
|
-
</div>
|
|
28
|
-
{%- endif -%}
|
|
29
|
-
|
|
30
|
-
<div class="gcds-card__content">{% content_for 'blocks' %}</div>
|
|
31
|
-
|
|
32
|
-
{%- if block.settings.button_label != blank -%}
|
|
33
|
-
<div class="gcds-card__footer">
|
|
34
|
-
{%- if block.settings.button_url != blank -%}
|
|
35
|
-
<a class="gcds-button gcds-button--primary gcds-button--md" href="{{ block.settings.button_url }}">
|
|
36
|
-
{{- block.settings.button_label | escape -}}
|
|
37
|
-
</a>
|
|
38
|
-
{%- else -%}
|
|
39
|
-
<button type="button" class="gcds-button gcds-button--primary gcds-button--md">
|
|
40
|
-
{{- block.settings.button_label | escape -}}
|
|
41
|
-
</button>
|
|
42
|
-
{%- endif -%}
|
|
43
|
-
</div>
|
|
44
|
-
{%- endif -%}
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
{% schema %}
|
|
48
|
-
{
|
|
49
|
-
"name": "t:blocks.card_name",
|
|
50
|
-
"blocks": [{ "type": "@theme" }],
|
|
51
|
-
"settings": [
|
|
52
|
-
{ "type": "image_picker", "id": "image", "label": "t:settings.image" },
|
|
53
|
-
{ "type": "text", "id": "title", "label": "t:settings.title", "default": "Card title" },
|
|
54
|
-
{ "type": "text", "id": "description", "label": "t:settings.description", "default": "Supporting copy." },
|
|
55
|
-
{ "type": "text", "id": "button_label", "label": "t:settings.button_label" },
|
|
56
|
-
{ "type": "url", "id": "button_url", "label": "t:settings.button_url" }
|
|
57
|
-
],
|
|
58
|
-
"presets": [
|
|
59
|
-
{
|
|
60
|
-
"name": "t:blocks.card_name",
|
|
61
|
-
"blocks": [
|
|
62
|
-
{ "type": "text", "settings": { "heading": "", "body": "The content region holds the card's main body copy." } }
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
{% endschema %}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{%- comment -%}
|
|
2
|
-
Carousel — a Swiper web-component slider (.gcds-carousel) that holds Carousel slide
|
|
3
|
-
blocks. The look (outline arrows, dots below, keyboard) is the shared skin in
|
|
4
|
-
baseline.css; the behaviour is Swiper Element. The nav/dots/keyboard/loop settings
|
|
5
|
-
map straight to <swiper-container> attributes, so there's no per-block init script —
|
|
6
|
-
the element auto-inits from its attributes once the engine has loaded.
|
|
7
|
-
|
|
8
|
-
Engine delivery: SELF-HOSTED (assets/swiper-element-bundle.min.js — Swiper 14, MIT),
|
|
9
|
-
loaded per-carousel via the deferred <script> below rather than a CDN, so the theme
|
|
10
|
-
stays build-free and CSP-clean. The bundle auto-registers <swiper-container>/
|
|
11
|
-
<swiper-slide> and guards against re-defining them, so multiple carousels on one page
|
|
12
|
-
(each printing the tag) are harmless — the browser caches the file and the second run
|
|
13
|
-
is a no-op. It loads ONLY on pages where a carousel is used (the script lives in the
|
|
14
|
-
block, not layout/theme.liquid).
|
|
15
|
-
|
|
16
|
-
Accepts only _carousel-slide children (private block, mirrors accordion-group ->
|
|
17
|
-
_accordion). Swiper's a11y module is on by default (carousel/slide roles + live
|
|
18
|
-
announcements); RTL follows the storefront dir automatically.
|
|
19
|
-
{%- endcomment -%}
|
|
20
|
-
<swiper-container
|
|
21
|
-
class="gcds-carousel"
|
|
22
|
-
{% if block.settings.arrows %}navigation="true"{% endif %}
|
|
23
|
-
{% if block.settings.dots %}pagination="true" pagination-clickable="true"{% endif %}
|
|
24
|
-
{% if block.settings.keyboard %}keyboard="true"{% endif %}
|
|
25
|
-
{% if block.settings.loop %}loop="true"{% endif %}
|
|
26
|
-
space-between="{{ block.settings.space_between | default: 16 }}"
|
|
27
|
-
{{ block.shopify_attributes }}
|
|
28
|
-
>
|
|
29
|
-
{% content_for 'blocks' %}
|
|
30
|
-
</swiper-container>
|
|
31
|
-
<script src="{{ 'swiper-element-bundle.min.js' | asset_url }}" defer></script>
|
|
32
|
-
|
|
33
|
-
{% schema %}
|
|
34
|
-
{
|
|
35
|
-
"name": "t:blocks.carousel_name",
|
|
36
|
-
"blocks": [{ "type": "_carousel-slide" }],
|
|
37
|
-
"settings": [
|
|
38
|
-
{ "type": "checkbox", "id": "arrows", "label": "t:settings.arrows", "default": true },
|
|
39
|
-
{ "type": "checkbox", "id": "dots", "label": "t:settings.dots", "default": true },
|
|
40
|
-
{ "type": "checkbox", "id": "keyboard", "label": "t:settings.keyboard", "default": true },
|
|
41
|
-
{ "type": "checkbox", "id": "loop", "label": "t:settings.loop", "default": false },
|
|
42
|
-
{ "type": "range", "id": "space_between", "label": "t:settings.space_between", "min": 0, "max": 48, "step": 2, "unit": "px", "default": 16 }
|
|
43
|
-
],
|
|
44
|
-
"presets": [
|
|
45
|
-
{
|
|
46
|
-
"name": "t:blocks.carousel_name",
|
|
47
|
-
"blocks": [
|
|
48
|
-
{ "type": "_carousel-slide", "blocks": [{ "type": "image" }] },
|
|
49
|
-
{ "type": "_carousel-slide", "blocks": [{ "type": "image" }] },
|
|
50
|
-
{ "type": "_carousel-slide", "blocks": [{ "type": "image" }] }
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
{% endschema %}
|