@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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=4557-180
|
|
2
|
+
// source=platforms/wordpress/theme/blocks/carousel/render.php
|
|
3
|
+
// component=acf/carousel
|
|
4
|
+
// WordPress Code Connect template (label "WordPress"): Carousel is the ACF block acf/carousel (core has none, ADR-0018),
|
|
5
|
+
// its slides acf/carousel-slide blocks around any blocks. Show Controls / Show Dots are the block's fields; the block
|
|
6
|
+
// has no vertical form, so Orientation is not read.
|
|
7
|
+
import figma from "figma";
|
|
8
|
+
const instance = figma.selectedInstance;
|
|
9
|
+
|
|
10
|
+
const controls = instance.getBoolean("Show Controls") ? "1" : "0";
|
|
11
|
+
const dots = instance.getBoolean("Show Dots") ? "1" : "0";
|
|
12
|
+
const slide = (n: number) => `<!-- wp:acf/carousel-slide {"name":"acf/carousel-slide","mode":"preview"} -->
|
|
13
|
+
<!-- wp:paragraph --><p>Slide ${n}</p><!-- /wp:paragraph -->
|
|
14
|
+
<!-- /wp:acf/carousel-slide -->`;
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
example: figma.code`<!-- wp:acf/carousel {"name":"acf/carousel","data":{"aria_label":"Featured","slides_per_view":"1","loop":"0","autoplay":"0","show_controls":"${controls}","show_dots":"${dots}"},"mode":"preview"} -->
|
|
18
|
+
${[1, 2, 3].map(slide).join("\n")}
|
|
19
|
+
<!-- /wp:acf/carousel -->`,
|
|
20
|
+
id: "wp-acf-carousel",
|
|
21
|
+
metadata: { nestable: true },
|
|
22
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* acf/carousel (spec: components/carousel/spec.md; user 2026-10-06): core has no carousel block, so ADR-0018 allows
|
|
4
|
+
* ACF. React's markup (role=region, a viewport, a track of acf/carousel-slide blocks, Previous / Next, CarouselDots),
|
|
5
|
+
* run by the shared Embla script (assets/js/carousel.js, the block's viewScript; built from src/carousel.js by
|
|
6
|
+
* `npm run build`). ACF wraps the inner blocks in div.acf-innerblocks-container on the front end too, so the viewport
|
|
7
|
+
* names that wrapper as the track (data-track). Settings: slides per view, loop, autoplay, controls, dots.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
declare(strict_types=1);
|
|
11
|
+
|
|
12
|
+
$per_view = (string) (get_field('slides_per_view') ?: '1');
|
|
13
|
+
$loop = (bool) get_field('loop');
|
|
14
|
+
$autoplay = max(0, (int) get_field('autoplay')) * 1000;
|
|
15
|
+
// ACF returns "1" / "0" (or null before the block is first saved, which keeps the defaults: on)
|
|
16
|
+
$on = static fn($v): bool => $v === null || $v === '' ? true : (bool) (int) $v;
|
|
17
|
+
$controls = $on(get_field('show_controls'));
|
|
18
|
+
$dots = $on(get_field('show_dots'));
|
|
19
|
+
$label = (string) (get_field('aria_label') ?: __('Carousel', 'baseline'));
|
|
20
|
+
$template = [
|
|
21
|
+
['acf/carousel-slide', [], [['core/paragraph', ['content' => __('Slide one', 'baseline')]]]],
|
|
22
|
+
['acf/carousel-slide', [], [['core/paragraph', ['content' => __('Slide two', 'baseline')]]]],
|
|
23
|
+
['acf/carousel-slide', [], [['core/paragraph', ['content' => __('Slide three', 'baseline')]]]],
|
|
24
|
+
];
|
|
25
|
+
$control = static fn(string $slot, string $icon, string $text): string => baseline_button([
|
|
26
|
+
'variant' => 'outline',
|
|
27
|
+
'size' => 'sm',
|
|
28
|
+
'class' => 'is-icon-only bl-carousel__control bl-carousel__control--' . $slot,
|
|
29
|
+
'attrs' => ['data-slot' => 'carousel-' . $slot],
|
|
30
|
+
'children' => baseline_icon($icon) . '<span class="sr-only">' . esc_html($text) . '</span>',
|
|
31
|
+
]);
|
|
32
|
+
?>
|
|
33
|
+
<div <?php echo get_block_wrapper_attributes([ // phpcs:ignore WordPress.Security.EscapeOutput
|
|
34
|
+
'class' => 'bl-carousel' . ($dots ? ' has-dots' : ''), // slides keep typeset; data-slot gives the flow gap
|
|
35
|
+
'role' => 'region',
|
|
36
|
+
'aria-roledescription' => 'carousel',
|
|
37
|
+
'aria-label' => $label,
|
|
38
|
+
'data-slot' => 'carousel',
|
|
39
|
+
'data-orientation' => 'horizontal',
|
|
40
|
+
'data-slides' => $per_view,
|
|
41
|
+
'data-options' => wp_json_encode(['loop' => $loop, 'align' => 'start']),
|
|
42
|
+
'data-autoplay' => $autoplay ? (string) $autoplay : null,
|
|
43
|
+
]); ?>>
|
|
44
|
+
<div class="bl-carousel__viewport" data-slot="carousel-content" data-track=".acf-innerblocks-container">
|
|
45
|
+
<InnerBlocks allowedBlocks="<?php echo esc_attr(wp_json_encode(['acf/carousel-slide'])); ?>" template="<?php echo esc_attr(wp_json_encode($template)); ?>" />
|
|
46
|
+
</div>
|
|
47
|
+
<?php if ($controls) : ?>
|
|
48
|
+
<?php echo $control('previous', 'chevron-left', __('Previous slide', 'baseline')); // phpcs:ignore WordPress.Security.EscapeOutput ?>
|
|
49
|
+
<?php echo $control('next', 'chevron-right', __('Next slide', 'baseline')); // phpcs:ignore WordPress.Security.EscapeOutput ?>
|
|
50
|
+
<?php endif; ?>
|
|
51
|
+
<?php if ($dots) : ?>
|
|
52
|
+
<div class="bl-carousel__dots" data-slot="carousel-dots" data-dot-class="bl-carousel__dot"></div>
|
|
53
|
+
<?php endif; ?>
|
|
54
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
3
|
+
"apiVersion": 3,
|
|
4
|
+
"name": "acf/carousel-slide",
|
|
5
|
+
"title": "Carousel Slide",
|
|
6
|
+
"description": "One slide of a Carousel: any blocks (spec: components/carousel/spec.md).",
|
|
7
|
+
"category": "design",
|
|
8
|
+
"icon": "format-image",
|
|
9
|
+
"parent": ["acf/carousel"],
|
|
10
|
+
"acf": {
|
|
11
|
+
"mode": "preview",
|
|
12
|
+
"renderTemplate": "render.php",
|
|
13
|
+
"blockVersion": 3
|
|
14
|
+
},
|
|
15
|
+
"supports": {
|
|
16
|
+
"anchor": true,
|
|
17
|
+
"html": false,
|
|
18
|
+
"align": false,
|
|
19
|
+
"color": false,
|
|
20
|
+
"typography": false,
|
|
21
|
+
"spacing": false,
|
|
22
|
+
"jsx": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* acf/carousel-slide: one slide of acf/carousel (spec: components/carousel/spec.md), React's CarouselItem
|
|
4
|
+
* (role=group, aria-roledescription=slide) around any blocks; an optional accessible name (aria_label).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
declare(strict_types=1);
|
|
8
|
+
|
|
9
|
+
$label = (string) (get_field('aria_label') ?: '');
|
|
10
|
+
?>
|
|
11
|
+
<div <?php echo get_block_wrapper_attributes(['class' => 'bl-carousel__slide', 'role' => 'group', 'aria-roledescription' => 'slide', 'aria-label' => $label !== '' ? $label : null, 'data-slot' => 'carousel-item']); // phpcs:ignore WordPress.Security.EscapeOutput ?>>
|
|
12
|
+
<InnerBlocks />
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
3
|
+
"apiVersion": 3,
|
|
4
|
+
"name": "acf/dialog",
|
|
5
|
+
"title": "Dialog",
|
|
6
|
+
"description": "A button that opens a modal dialog: title, description, any blocks as the body and an optional footer (spec: components/dialog/spec.md).",
|
|
7
|
+
"category": "design",
|
|
8
|
+
"icon": "welcome-widgets-menus",
|
|
9
|
+
"keywords": ["dialog", "modal", "popup", "lightbox"],
|
|
10
|
+
"acf": {
|
|
11
|
+
"mode": "preview",
|
|
12
|
+
"renderTemplate": "render.php",
|
|
13
|
+
"blockVersion": 3
|
|
14
|
+
},
|
|
15
|
+
"supports": {
|
|
16
|
+
"anchor": true,
|
|
17
|
+
"html": false,
|
|
18
|
+
"align": false,
|
|
19
|
+
"color": false,
|
|
20
|
+
"typography": false,
|
|
21
|
+
"spacing": false,
|
|
22
|
+
"jsx": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=4461-13577
|
|
2
|
+
// source=platforms/wordpress/theme/blocks/dialog/render.php
|
|
3
|
+
// component=acf/dialog
|
|
4
|
+
// WordPress Code Connect template (label "WordPress"): Figma's Dialog is the acf/dialog block (no comparable core
|
|
5
|
+
// block, ADR-0018). Title, description and the corner close are fields; the body is InnerBlocks; Show Footer adds the
|
|
6
|
+
// child acf/dialog-footer with a core/buttons and its Close button. Show Media and Footer Orientation have no field.
|
|
7
|
+
import figma from "figma";
|
|
8
|
+
const instance = figma.selectedInstance;
|
|
9
|
+
|
|
10
|
+
const showHeader = instance.getBoolean("Show Header");
|
|
11
|
+
const showFooter = instance.getBoolean("Show Footer");
|
|
12
|
+
const showClose = instance.getBoolean("Show Close Button");
|
|
13
|
+
const title = instance.getString("Title");
|
|
14
|
+
const description = instance.getBoolean("Show Description") ? instance.getString("Description") : "";
|
|
15
|
+
|
|
16
|
+
const fields = [
|
|
17
|
+
`"trigger_label":"Open"`,
|
|
18
|
+
showHeader ? `"title":"${title}"` : `"title":""`,
|
|
19
|
+
showHeader && description ? `"description":"${description}"` : "",
|
|
20
|
+
showClose ? "" : `"show_close":"0"`,
|
|
21
|
+
].filter(Boolean).join(",");
|
|
22
|
+
|
|
23
|
+
const footer = showFooter
|
|
24
|
+
? `
|
|
25
|
+
<!-- wp:acf/dialog-footer {"name":"acf/dialog-footer","data":{"close_label":"Cancel"},"mode":"preview"} -->
|
|
26
|
+
<!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button --><div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Continue</a></div><!-- /wp:button --></div><!-- /wp:buttons -->
|
|
27
|
+
<!-- /wp:acf/dialog-footer -->`
|
|
28
|
+
: "";
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
example: figma.code`<!-- wp:acf/dialog {"name":"acf/dialog","data":{${fields}},"mode":"preview"} -->
|
|
32
|
+
<!-- wp:paragraph --><p>Dialog content goes here.</p><!-- /wp:paragraph -->${footer}
|
|
33
|
+
<!-- /wp:acf/dialog -->`,
|
|
34
|
+
id: "wp-acf-dialog",
|
|
35
|
+
metadata: { nestable: true },
|
|
36
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* acf/dialog: the Baseline Dialog (spec: components/dialog/spec.md). WordPress has no comparable core block
|
|
4
|
+
* (ADR-0018), so this is an ACF block: the trigger, title and description are fields; the body is InnerBlocks, with an
|
|
5
|
+
* optional acf/dialog-footer last. Markup from baseline_dialog() (inc/components/dialog.php), shared with template code.
|
|
6
|
+
*
|
|
7
|
+
* On the front end it is a native <dialog> opened by the trigger's command="show-modal" (no JavaScript). In the editor
|
|
8
|
+
* the panel renders in place, because a closed <dialog> would hide the blocks editors need to reach.
|
|
9
|
+
*
|
|
10
|
+
* @var array $block
|
|
11
|
+
* @var bool $is_preview
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
declare(strict_types=1);
|
|
15
|
+
|
|
16
|
+
// The anchor is the block wrapper's id (get_block_wrapper_attributes), so the <dialog> takes "<anchor>-dialog": a
|
|
17
|
+
// shared id made the trigger's commandfor find the wrapper (found 2026-10-02 rendering through DDEV).
|
|
18
|
+
$anchor = (string) ($block['anchor'] ?? '');
|
|
19
|
+
$id = ($anchor !== '' ? $anchor : 'dialog-' . substr(md5((string) ($block['id'] ?? wp_unique_id())), 0, 8)) . '-dialog';
|
|
20
|
+
$close = get_field('show_close'); // ACF stores the toggle as "1"/"0"; null until the block is first saved
|
|
21
|
+
$template = [
|
|
22
|
+
['core/paragraph', ['content' => __('Dialog content goes here.', 'baseline')]],
|
|
23
|
+
['acf/dialog-footer', []],
|
|
24
|
+
];
|
|
25
|
+
$body = '<InnerBlocks template="' . esc_attr(wp_json_encode($template)) . '" templateLock="false" />';
|
|
26
|
+
?>
|
|
27
|
+
<div <?php echo get_block_wrapper_attributes(['class' => 'not-typeset']); // phpcs:ignore WordPress.Security.EscapeOutput ?>>
|
|
28
|
+
<?php
|
|
29
|
+
echo baseline_dialog([ // phpcs:ignore WordPress.Security.EscapeOutput -- built and escaped by baseline_dialog()
|
|
30
|
+
'id' => $id,
|
|
31
|
+
'trigger' => (string) (get_field('trigger_label') ?: __('Open', 'baseline')),
|
|
32
|
+
'trigger_variant' => (string) (get_field('trigger_variant') ?: 'outline'),
|
|
33
|
+
'trigger_size' => (string) (get_field('trigger_size') ?: 'md'),
|
|
34
|
+
'title' => (string) (get_field('title') ?: ''),
|
|
35
|
+
'description' => (string) (get_field('description') ?: ''),
|
|
36
|
+
'show_close' => $close === null || (bool) $close,
|
|
37
|
+
'body' => $body,
|
|
38
|
+
'preview' => !empty($is_preview),
|
|
39
|
+
]);
|
|
40
|
+
?>
|
|
41
|
+
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
3
|
+
"apiVersion": 3,
|
|
4
|
+
"name": "acf/dialog-footer",
|
|
5
|
+
"title": "Dialog Footer",
|
|
6
|
+
"description": "The footer of a Dialog: its buttons, bordered and muted, stacked on small screens. Place it last (spec: components/dialog/spec.md).",
|
|
7
|
+
"category": "design",
|
|
8
|
+
"icon": "button",
|
|
9
|
+
"parent": ["acf/dialog"],
|
|
10
|
+
"keywords": ["dialog", "footer", "actions"],
|
|
11
|
+
"acf": {
|
|
12
|
+
"mode": "preview",
|
|
13
|
+
"renderTemplate": "render.php",
|
|
14
|
+
"blockVersion": 3
|
|
15
|
+
},
|
|
16
|
+
"supports": {
|
|
17
|
+
"html": false,
|
|
18
|
+
"align": false,
|
|
19
|
+
"color": false,
|
|
20
|
+
"typography": false,
|
|
21
|
+
"spacing": false,
|
|
22
|
+
"multiple": false,
|
|
23
|
+
"jsx": true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* acf/dialog-footer: the Dialog's footer (spec: components/dialog/spec.md), a child of acf/dialog. Its actions are one
|
|
4
|
+
* core/buttons (real core/button blocks with their block styles); the Close field adds an outline button that closes
|
|
5
|
+
* the dialog through <form method="dialog">, which needs neither the dialog's id nor JavaScript.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare(strict_types=1);
|
|
9
|
+
|
|
10
|
+
$template = [['core/buttons', [], [['core/button', ['text' => __('Continue', 'baseline')]]]]];
|
|
11
|
+
$actions = '<InnerBlocks allowedBlocks="' . esc_attr(wp_json_encode(['core/buttons'])) . '" template="'
|
|
12
|
+
. esc_attr(wp_json_encode($template)) . '" templateLock="false" />';
|
|
13
|
+
|
|
14
|
+
echo baseline_dialog_footer( // phpcs:ignore WordPress.Security.EscapeOutput -- built and escaped by baseline_dialog_footer()
|
|
15
|
+
$actions,
|
|
16
|
+
(string) (get_field('close_label') ?? __('Cancel', 'baseline')),
|
|
17
|
+
get_block_wrapper_attributes(['class' => BASELINE_DIALOG_FOOTER])
|
|
18
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
3
|
+
"apiVersion": 3,
|
|
4
|
+
"name": "acf/item",
|
|
5
|
+
"title": "Item",
|
|
6
|
+
"description": "A row: optional media, a title and description, and actions at the end (spec: components/item/spec.md).",
|
|
7
|
+
"category": "design",
|
|
8
|
+
"icon": "list-view",
|
|
9
|
+
"keywords": ["item", "row", "list", "person", "file", "setting"],
|
|
10
|
+
"usesContext": ["baseline/itemGroup"],
|
|
11
|
+
"acf": {
|
|
12
|
+
"mode": "preview",
|
|
13
|
+
"renderTemplate": "render.php",
|
|
14
|
+
"blockVersion": 3
|
|
15
|
+
},
|
|
16
|
+
"supports": {
|
|
17
|
+
"anchor": true,
|
|
18
|
+
"html": false,
|
|
19
|
+
"align": false,
|
|
20
|
+
"color": false,
|
|
21
|
+
"typography": false,
|
|
22
|
+
"spacing": false,
|
|
23
|
+
"jsx": true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=4360-299
|
|
2
|
+
// source=platforms/wordpress/theme/blocks/item/render.php
|
|
3
|
+
// component=acf/item
|
|
4
|
+
// WordPress Code Connect template (label "WordPress"): Figma's Item is the acf/item block. Variant and Size are fields;
|
|
5
|
+
// Show Media picks the media field (icon or image); Show Actions turns on the block's core/buttons InnerBlocks. Header
|
|
6
|
+
// and footer rows have no WordPress field.
|
|
7
|
+
import figma from "figma";
|
|
8
|
+
const instance = figma.selectedInstance;
|
|
9
|
+
|
|
10
|
+
const variant = instance.getEnum("Variant", { default: "default", outline: "outline", muted: "muted" });
|
|
11
|
+
const size = instance.getEnum("Size", { md: "md", sm: "sm", xs: "xs" });
|
|
12
|
+
const showMedia = instance.getBoolean("Show Media");
|
|
13
|
+
const showActions = instance.getBoolean("Show Actions");
|
|
14
|
+
|
|
15
|
+
// Title and description are component properties (2026-10-02): the Content slot became a fixed title and
|
|
16
|
+
// description, since they are not drop-in content.
|
|
17
|
+
const title = instance.getString("Title");
|
|
18
|
+
const description = instance.getBoolean("Show Description") ? instance.getString("Description") : "";
|
|
19
|
+
|
|
20
|
+
let media = "";
|
|
21
|
+
if (showMedia) {
|
|
22
|
+
const part = instance.findInstance(".Item/Media");
|
|
23
|
+
const kind = part && part.type === "INSTANCE" ? part.getEnum("Variant", { icon: "icon", image: "image" }) : "icon";
|
|
24
|
+
media = kind === "image" ? `"media":"image"` : `"media":"icon","icon":"success"`;
|
|
25
|
+
}
|
|
26
|
+
const fields = [
|
|
27
|
+
variant !== "default" ? `"variant":"${variant}"` : "",
|
|
28
|
+
size !== "md" ? `"size":"${size}"` : "",
|
|
29
|
+
media,
|
|
30
|
+
`"title":"${title}"`,
|
|
31
|
+
description ? `"description":"${description}"` : "",
|
|
32
|
+
showActions ? `"show_actions":"1"` : "",
|
|
33
|
+
].filter(Boolean).join(",");
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
example: showActions
|
|
37
|
+
? figma.code`<!-- wp:acf/item {"name":"acf/item","data":{${fields}},"mode":"preview"} -->
|
|
38
|
+
<!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button {"className":"is-style-outline","baselineSize":"sm"} --><div class="wp-block-button is-style-outline"><a class="wp-block-button__link wp-element-button">Action</a></div><!-- /wp:button --></div><!-- /wp:buttons -->
|
|
39
|
+
<!-- /wp:acf/item -->`
|
|
40
|
+
: figma.code`<!-- wp:acf/item {"name":"acf/item","data":{${fields}},"mode":"preview"} /-->`,
|
|
41
|
+
id: "wp-acf-item",
|
|
42
|
+
metadata: { nestable: true },
|
|
43
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* acf/item: the Baseline Item (spec: components/item/spec.md). An ACF block rather than core/group because Item's
|
|
4
|
+
* anatomy is fixed (a one-line title, a two-line description) and core cannot enforce that typography (user decision,
|
|
5
|
+
* 2026-09-30). Markup from baseline_item() (inc/components/item.php); the item itself is the block's root.
|
|
6
|
+
*
|
|
7
|
+
* Actions are InnerBlocks limited to core/buttons, so they are real core/button blocks with their block styles. A Link
|
|
8
|
+
* makes the whole row one <a>, which renders no actions: nothing interactive may sit inside a link. Size "Group" (the
|
|
9
|
+
* default) takes the enclosing acf/item-group's size through block context.
|
|
10
|
+
*
|
|
11
|
+
* @var array $context
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
declare(strict_types=1);
|
|
15
|
+
|
|
16
|
+
$group = is_array($context['baseline/itemGroup'] ?? null) ? $context['baseline/itemGroup'] : [];
|
|
17
|
+
$size = (string) (get_field('size') ?: 'group');
|
|
18
|
+
$size = $size === 'group' ? (string) ($group['size'] ?? 'md') : $size;
|
|
19
|
+
$variant = (string) (get_field('variant') ?: 'default');
|
|
20
|
+
$media = (string) (get_field('media') ?: 'none');
|
|
21
|
+
$image = $media === 'image' ? get_field('image') : null;
|
|
22
|
+
$link = get_field('link');
|
|
23
|
+
$href = is_array($link) ? (string) ($link['url'] ?? '') : '';
|
|
24
|
+
$actions = '<InnerBlocks allowedBlocks="' . esc_attr(wp_json_encode(['core/buttons'])) . '" template="'
|
|
25
|
+
. esc_attr(wp_json_encode([['core/buttons', [], [['core/button', ['className' => 'is-style-outline', 'baselineSize' => 'sm']]]]]))
|
|
26
|
+
. '" templateLock="false" />';
|
|
27
|
+
|
|
28
|
+
echo baseline_item([ // phpcs:ignore WordPress.Security.EscapeOutput -- built and escaped by baseline_item()
|
|
29
|
+
'title' => (string) (get_field('title') ?: ''),
|
|
30
|
+
'description' => (string) (get_field('description') ?: ''),
|
|
31
|
+
'icon' => $media === 'icon' ? (string) (get_field('icon') ?: '') : '',
|
|
32
|
+
'image' => is_array($image) ? (string) ($image['sizes']['thumbnail'] ?? $image['url'] ?? '') : '',
|
|
33
|
+
'image_alt' => is_array($image) ? (string) ($image['alt'] ?? '') : '',
|
|
34
|
+
'size' => $size,
|
|
35
|
+
'href' => $href,
|
|
36
|
+
'actions' => get_field('show_actions') ? $actions : '',
|
|
37
|
+
'root_attrs' => get_block_wrapper_attributes(['class' => baseline_item_classes($variant, $size)]),
|
|
38
|
+
]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
3
|
+
"apiVersion": 3,
|
|
4
|
+
"name": "acf/item-group",
|
|
5
|
+
"title": "Item Group",
|
|
6
|
+
"description": "A list of Items; the gap follows their size (spec: components/item/spec.md).",
|
|
7
|
+
"category": "design",
|
|
8
|
+
"icon": "list-view",
|
|
9
|
+
"keywords": ["item", "list", "group"],
|
|
10
|
+
"providesContext": { "baseline/itemGroup": "data" },
|
|
11
|
+
"acf": {
|
|
12
|
+
"mode": "preview",
|
|
13
|
+
"renderTemplate": "render.php",
|
|
14
|
+
"blockVersion": 3
|
|
15
|
+
},
|
|
16
|
+
"supports": {
|
|
17
|
+
"anchor": true,
|
|
18
|
+
"html": false,
|
|
19
|
+
"align": false,
|
|
20
|
+
"color": false,
|
|
21
|
+
"typography": false,
|
|
22
|
+
"spacing": false,
|
|
23
|
+
"jsx": true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=2600-28149
|
|
2
|
+
// source=platforms/wordpress/theme/blocks/item-group/render.php
|
|
3
|
+
// component=acf/item-group
|
|
4
|
+
// WordPress Code Connect template (label "WordPress"): Figma's Item Group is the acf/item-group block; its Size is the
|
|
5
|
+
// group's field, which items left on size "Group" follow. The slot's Items render their own acf/item templates.
|
|
6
|
+
import figma from "figma";
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
|
|
9
|
+
const size = instance.getEnum("Size", { md: "md", sm: "sm", xs: "xs" });
|
|
10
|
+
const items = (instance.children ?? [])
|
|
11
|
+
.flatMap((c: any) => (c.type === "INSTANCE" ? [c] : c.children ?? []))
|
|
12
|
+
.filter((c: any) => c.type === "INSTANCE")
|
|
13
|
+
.map((c: any) => {
|
|
14
|
+
try {
|
|
15
|
+
return c.executeTemplate().example;
|
|
16
|
+
} catch {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
.filter(Boolean);
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
example: figma.code`<!-- wp:acf/item-group {"name":"acf/item-group","data":{"size":"${size}"},"mode":"preview"} -->
|
|
24
|
+
${items.length ? items : figma.code`<!-- wp:acf/item {"name":"acf/item","data":{"title":"Item"},"mode":"preview"} /-->`}
|
|
25
|
+
<!-- /wp:acf/item-group -->`,
|
|
26
|
+
id: "wp-acf-item-group",
|
|
27
|
+
metadata: { nestable: true },
|
|
28
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* acf/item-group: a list of acf/item blocks (spec: components/item/spec.md; user-approved 2026-09-30). Mirrors React's
|
|
4
|
+
* ItemGroup: role="list", and the gap between items follows their size. Items whose size is "Group" take the group's
|
|
5
|
+
* Size through block context (the group provides its ACF `data` as baseline/itemGroup).
|
|
6
|
+
*
|
|
7
|
+
* ACF wraps InnerBlocks in div.acf-innerblocks-container on the front end as well as in the editor, so the gap is
|
|
8
|
+
* carried through those wrappers in src/item.css, as Avatar Group does.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
declare(strict_types=1);
|
|
12
|
+
|
|
13
|
+
$size = baseline_item_size((string) (get_field('size') ?: 'md'));
|
|
14
|
+
$allowed = ['acf/item'];
|
|
15
|
+
$template = [
|
|
16
|
+
['acf/item', ['data' => ['title' => __('First item', 'baseline'), 'description' => __('A short description.', 'baseline')]]],
|
|
17
|
+
['acf/item', ['data' => ['title' => __('Second item', 'baseline'), 'description' => __('A short description.', 'baseline')]]],
|
|
18
|
+
];
|
|
19
|
+
?>
|
|
20
|
+
<div <?php echo get_block_wrapper_attributes(['class' => BASELINE_ITEM_GROUP, 'role' => 'list', 'data-slot' => 'item-group', 'data-size' => $size]); // phpcs:ignore WordPress.Security.EscapeOutput ?>>
|
|
21
|
+
<InnerBlocks allowedBlocks="<?php echo esc_attr(wp_json_encode($allowed)); ?>" template="<?php echo esc_attr(wp_json_encode($template)); ?>" />
|
|
22
|
+
</div>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
3
|
+
"apiVersion": 3,
|
|
4
|
+
"name": "acf/sheet",
|
|
5
|
+
"title": "Sheet",
|
|
6
|
+
"description": "A button that opens a panel against one edge of the screen: title, description, any blocks as the body and an optional footer (spec: components/sheet/spec.md).",
|
|
7
|
+
"category": "design",
|
|
8
|
+
"icon": "align-pull-right",
|
|
9
|
+
"keywords": ["sheet", "drawer", "panel", "offcanvas", "side"],
|
|
10
|
+
"acf": {
|
|
11
|
+
"mode": "preview",
|
|
12
|
+
"renderTemplate": "render.php",
|
|
13
|
+
"blockVersion": 3
|
|
14
|
+
},
|
|
15
|
+
"supports": {
|
|
16
|
+
"anchor": true,
|
|
17
|
+
"html": false,
|
|
18
|
+
"align": false,
|
|
19
|
+
"color": false,
|
|
20
|
+
"typography": false,
|
|
21
|
+
"spacing": false,
|
|
22
|
+
"jsx": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* acf/sheet: the Baseline Sheet (spec: components/sheet/spec.md), Dialog's machinery drawn as an edge panel. No core
|
|
4
|
+
* block is comparable (ADR-0018). The trigger, side, title and description are fields; the body is InnerBlocks, with an
|
|
5
|
+
* optional acf/sheet-footer last. Markup from baseline_sheet() (inc/components/sheet.php), shared with template code.
|
|
6
|
+
* In the editor the panel renders in place, because a closed <dialog> would hide the blocks editors need to reach.
|
|
7
|
+
*
|
|
8
|
+
* @var array $block
|
|
9
|
+
* @var bool $is_preview
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
declare(strict_types=1);
|
|
13
|
+
|
|
14
|
+
// The anchor is the block wrapper's id, so the <dialog> takes "<anchor>-sheet" (a shared id breaks commandfor).
|
|
15
|
+
$anchor = (string) ($block['anchor'] ?? '');
|
|
16
|
+
$id = ($anchor !== '' ? $anchor : 'sheet-' . substr(md5((string) ($block['id'] ?? wp_unique_id())), 0, 8)) . '-sheet';
|
|
17
|
+
$close = get_field('show_close'); // ACF stores the toggle as "1"/"0"; null until the block is first saved
|
|
18
|
+
$template = [
|
|
19
|
+
['core/paragraph', ['content' => __('Sheet content goes here.', 'baseline')]],
|
|
20
|
+
['acf/sheet-footer', []],
|
|
21
|
+
];
|
|
22
|
+
$body = '<InnerBlocks template="' . esc_attr(wp_json_encode($template)) . '" templateLock="false" />';
|
|
23
|
+
?>
|
|
24
|
+
<div <?php echo get_block_wrapper_attributes(['class' => 'not-typeset']); // phpcs:ignore WordPress.Security.EscapeOutput ?>>
|
|
25
|
+
<?php
|
|
26
|
+
echo baseline_sheet([ // phpcs:ignore WordPress.Security.EscapeOutput -- built and escaped by baseline_sheet()
|
|
27
|
+
'id' => $id,
|
|
28
|
+
'trigger' => (string) (get_field('trigger_label') ?: __('Open', 'baseline')),
|
|
29
|
+
'trigger_variant' => (string) (get_field('trigger_variant') ?: 'outline'),
|
|
30
|
+
'trigger_size' => (string) (get_field('trigger_size') ?: 'md'),
|
|
31
|
+
'side' => (string) (get_field('side') ?: 'right'),
|
|
32
|
+
'title' => (string) (get_field('title') ?: ''),
|
|
33
|
+
'description' => (string) (get_field('description') ?: ''),
|
|
34
|
+
'show_close' => $close === null || (bool) $close,
|
|
35
|
+
'body' => $body,
|
|
36
|
+
'preview' => !empty($is_preview),
|
|
37
|
+
]);
|
|
38
|
+
?>
|
|
39
|
+
</div>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=4467-82
|
|
2
|
+
// source=platforms/wordpress/theme/blocks/sheet/render.php
|
|
3
|
+
// component=acf/sheet
|
|
4
|
+
// WordPress Code Connect template (label "WordPress"): Figma's Sheet is the acf/sheet block (no comparable core block,
|
|
5
|
+
// ADR-0018). Side, title, description and the corner close are fields; the body is InnerBlocks; Show Footer adds the
|
|
6
|
+
// child acf/sheet-footer with a core/buttons and its Close button.
|
|
7
|
+
import figma from "figma";
|
|
8
|
+
const instance = figma.selectedInstance;
|
|
9
|
+
|
|
10
|
+
const side = instance.getEnum("Side", { right: "right", left: "left", top: "top", bottom: "bottom" });
|
|
11
|
+
const showHeader = instance.getBoolean("Show Header");
|
|
12
|
+
const showFooter = instance.getBoolean("Show Footer");
|
|
13
|
+
const showClose = instance.getBoolean("Show Close Button");
|
|
14
|
+
const title = instance.getString("Title");
|
|
15
|
+
const description = instance.getBoolean("Show Description") ? instance.getString("Description") : "";
|
|
16
|
+
|
|
17
|
+
const fields = [
|
|
18
|
+
`"trigger_label":"Open"`,
|
|
19
|
+
side !== "right" ? `"side":"${side}"` : "",
|
|
20
|
+
showHeader ? `"title":"${title}"` : `"title":""`,
|
|
21
|
+
showHeader && description ? `"description":"${description}"` : "",
|
|
22
|
+
showClose ? "" : `"show_close":"0"`,
|
|
23
|
+
].filter(Boolean).join(",");
|
|
24
|
+
|
|
25
|
+
const footer = showFooter
|
|
26
|
+
? `
|
|
27
|
+
<!-- wp:acf/sheet-footer {"name":"acf/sheet-footer","data":{"close_label":"Close"},"mode":"preview"} -->
|
|
28
|
+
<!-- wp:buttons --><div class="wp-block-buttons"><!-- wp:button --><div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Save changes</a></div><!-- /wp:button --></div><!-- /wp:buttons -->
|
|
29
|
+
<!-- /wp:acf/sheet-footer -->`
|
|
30
|
+
: "";
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
example: figma.code`<!-- wp:acf/sheet {"name":"acf/sheet","data":{${fields}},"mode":"preview"} -->
|
|
34
|
+
<!-- wp:paragraph --><p>Sheet content goes here.</p><!-- /wp:paragraph -->${footer}
|
|
35
|
+
<!-- /wp:acf/sheet -->`,
|
|
36
|
+
id: "wp-acf-sheet",
|
|
37
|
+
metadata: { nestable: true },
|
|
38
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
3
|
+
"apiVersion": 3,
|
|
4
|
+
"name": "acf/sheet-footer",
|
|
5
|
+
"title": "Sheet Footer",
|
|
6
|
+
"description": "The footer of a Sheet: its buttons, at the bottom of the panel, stacked. Place it last (spec: components/sheet/spec.md).",
|
|
7
|
+
"category": "design",
|
|
8
|
+
"icon": "button",
|
|
9
|
+
"parent": ["acf/sheet"],
|
|
10
|
+
"keywords": ["sheet", "footer", "actions"],
|
|
11
|
+
"acf": {
|
|
12
|
+
"mode": "preview",
|
|
13
|
+
"renderTemplate": "render.php",
|
|
14
|
+
"blockVersion": 3
|
|
15
|
+
},
|
|
16
|
+
"supports": {
|
|
17
|
+
"html": false,
|
|
18
|
+
"align": false,
|
|
19
|
+
"color": false,
|
|
20
|
+
"typography": false,
|
|
21
|
+
"spacing": false,
|
|
22
|
+
"multiple": false,
|
|
23
|
+
"jsx": true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/**
|
|
3
|
+
* acf/sheet-footer: the Sheet's footer (spec: components/sheet/spec.md), a child of acf/sheet, pushed to the bottom of the
|
|
4
|
+
* panel with its buttons stacked. Its actions are one core/buttons; the Close field adds an outline button after them
|
|
5
|
+
* that closes the sheet through <form method="dialog"> (no id, no JavaScript).
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare(strict_types=1);
|
|
9
|
+
|
|
10
|
+
$template = [['core/buttons', [], [['core/button', ['text' => __('Save changes', 'baseline')]]]]];
|
|
11
|
+
$actions = '<InnerBlocks allowedBlocks="' . esc_attr(wp_json_encode(['core/buttons'])) . '" template="'
|
|
12
|
+
. esc_attr(wp_json_encode($template)) . '" templateLock="false" />';
|
|
13
|
+
|
|
14
|
+
echo baseline_sheet_footer( // phpcs:ignore WordPress.Security.EscapeOutput -- built and escaped by baseline_sheet_footer()
|
|
15
|
+
$actions,
|
|
16
|
+
(string) (get_field('close_label') ?? __('Close', 'baseline')),
|
|
17
|
+
get_block_wrapper_attributes(['class' => BASELINE_SHEET_FOOTER])
|
|
18
|
+
);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Bundles the theme's scripts that import npm packages (spec: components/carousel/spec.md). Run by `npm run build`.
|
|
2
|
+
// src/carousel.js is a copy of platforms/html/src/carousel.js (scripts/gen-html.mjs refreshes it in the monorepo); in a
|
|
3
|
+
// project scaffolded from this theme, update Embla with `npm install embla-carousel@<v> embla-carousel-autoplay@<v>`
|
|
4
|
+
// and run `npm run build` again: the bundle's banner names the version it was built with.
|
|
5
|
+
import { build } from "esbuild";
|
|
6
|
+
import { readFileSync } from "node:fs";
|
|
7
|
+
import { dirname, join } from "node:path";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
|
|
10
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
11
|
+
const v = (p) => JSON.parse(readFileSync(join(here, "node_modules", p, "package.json"), "utf8")).version;
|
|
12
|
+
await build({
|
|
13
|
+
entryPoints: [join(here, "src", "carousel.js")],
|
|
14
|
+
bundle: true,
|
|
15
|
+
minify: true,
|
|
16
|
+
format: "iife",
|
|
17
|
+
target: "es2020",
|
|
18
|
+
outfile: join(here, "assets", "js", "carousel.js"),
|
|
19
|
+
banner: { js: `/* Baseline carousel (src/carousel.js) bundled with embla-carousel ${v("embla-carousel")} and embla-carousel-autoplay ${v("embla-carousel-autoplay")}. Generated: do not edit. */` },
|
|
20
|
+
logLevel: "warning",
|
|
21
|
+
});
|
|
22
|
+
console.log("build-js: assets/js/carousel.js");
|