@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,196 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Input Group as a snippet (spec: components/input-group/spec.md). Puts things inside a control's box:
|
|
3
|
+
a prefix, a suffix, an icon, a unit, a small button. The group draws the border and the focus ring that the
|
|
4
|
+
control would otherwise draw itself, and the control inside goes borderless.
|
|
5
|
+
|
|
6
|
+
Anything that sits BESIDE a control rather than inside it is Button Group or plain layout, not this.
|
|
7
|
+
|
|
8
|
+
The control is captured by the caller and passed in, the same way `field` takes one — render `input` or
|
|
9
|
+
`textarea` into a capture and hand it over. The group strips the control's border in CSS rather than asking
|
|
10
|
+
for a modifier class, which is the one place this diverges from React: there the stripping lives on
|
|
11
|
+
InputGroupInput, here a descendant selector does it for whatever control is inside.
|
|
12
|
+
|
|
13
|
+
@param {string} control - the control's markup, captured from `input` or `textarea` (required)
|
|
14
|
+
@param {string} [start] - addon content for the start of the box (an icon, a unit, a button)
|
|
15
|
+
@param {string} [end] - addon content for the end of the box
|
|
16
|
+
@param {string} [layout] - 'input' (default) or 'textarea': textarea puts the addons above and below
|
|
17
|
+
@param {string} [class] - extra classes on the group
|
|
18
|
+
|
|
19
|
+
@example
|
|
20
|
+
{%- capture search_control -%}
|
|
21
|
+
{% render 'input', type: 'search', name: 'q', placeholder: 'Search...' %}
|
|
22
|
+
{%- endcapture -%}
|
|
23
|
+
{%- capture search_button -%}
|
|
24
|
+
{% render 'button', label: 'Search', variant: 'secondary', size: 'xs', type: 'submit' %}
|
|
25
|
+
{%- endcapture -%}
|
|
26
|
+
{% render 'input-group', control: search_control, end: search_button %}
|
|
27
|
+
{% enddoc %}
|
|
28
|
+
|
|
29
|
+
{%- liquid
|
|
30
|
+
assign ig_layout = layout | default: 'input'
|
|
31
|
+
unless ig_layout == 'textarea'
|
|
32
|
+
assign ig_layout = 'input'
|
|
33
|
+
endunless
|
|
34
|
+
assign classes = 'bl-input-group bl-input-group--' | append: ig_layout
|
|
35
|
+
if class
|
|
36
|
+
assign classes = classes | append: ' ' | append: class
|
|
37
|
+
endif
|
|
38
|
+
|
|
39
|
+
assign start_align = 'inline-start'
|
|
40
|
+
assign end_align = 'inline-end'
|
|
41
|
+
if ig_layout == 'textarea'
|
|
42
|
+
assign start_align = 'block-start'
|
|
43
|
+
assign end_align = 'block-end'
|
|
44
|
+
endif
|
|
45
|
+
-%}
|
|
46
|
+
<div class="{{ classes }}" data-slot="input-group" role="group">
|
|
47
|
+
{%- if start != blank -%}
|
|
48
|
+
<div class="bl-input-group__addon" data-slot="input-group-addon" data-align="{{ start_align }}" role="group">
|
|
49
|
+
{{ start }}
|
|
50
|
+
</div>
|
|
51
|
+
{%- endif -%}
|
|
52
|
+
{{ control }}
|
|
53
|
+
{%- if end != blank -%}
|
|
54
|
+
<div class="bl-input-group__addon" data-slot="input-group-addon" data-align="{{ end_align }}" role="group">
|
|
55
|
+
{{ end }}
|
|
56
|
+
</div>
|
|
57
|
+
{%- endif -%}
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
{% stylesheet %}
|
|
61
|
+
/* Mirrors registry/src/ui/input-group/input-group.tsx. Geometry from the input-group/* and control/addon/*
|
|
62
|
+
component tokens (ADR-0017); colours from the scheme class. */
|
|
63
|
+
.bl-input-group {
|
|
64
|
+
position: relative;
|
|
65
|
+
display: flex;
|
|
66
|
+
width: 100%;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
align-items: center;
|
|
69
|
+
height: var(--bl-input-group-md-height);
|
|
70
|
+
border: var(--bl-input-group-md-border-width) solid var(--input);
|
|
71
|
+
border-radius: var(--bl-input-group-md-radius);
|
|
72
|
+
transition: border-color 150ms, box-shadow 150ms;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* The group reacts to the control rather than taking a state of its own — :focus-within and :has() do the
|
|
76
|
+
work, which is why the snippet has no state params (spec: States). */
|
|
77
|
+
.bl-input-group:focus-within {
|
|
78
|
+
border-color: var(--primary);
|
|
79
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.bl-input-group:has([aria-invalid='true']) {
|
|
83
|
+
border-color: var(--destructive);
|
|
84
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring-invalid);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.bl-input-group:has(:disabled) {
|
|
88
|
+
opacity: 0.5;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* The textarea layout is a column, and its height is whatever the content needs. */
|
|
92
|
+
.bl-input-group--textarea {
|
|
93
|
+
height: auto;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
align-items: stretch;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* The control goes borderless and gives up its own ring: the group draws both. Done here rather than with a
|
|
99
|
+
modifier class on the control, so any control dropped into a group is stripped automatically. */
|
|
100
|
+
.bl-input-group .bl-input,
|
|
101
|
+
.bl-input-group .bl-textarea {
|
|
102
|
+
height: 100%;
|
|
103
|
+
flex: 1;
|
|
104
|
+
min-width: 0;
|
|
105
|
+
border: 0;
|
|
106
|
+
border-radius: 0;
|
|
107
|
+
background-color: transparent;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.bl-input-group .bl-textarea {
|
|
111
|
+
height: auto;
|
|
112
|
+
resize: none;
|
|
113
|
+
padding-block: var(--bl-input-group-md-padding-y);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* The group draws the ring, so the control must never draw one — in EVERY state combination, including
|
|
117
|
+
invalid AND focused at once. That combination is the one that bites: input.liquid's
|
|
118
|
+
`.bl-input[aria-invalid='true']:focus-visible` is (0,3,0), and so are the two plainer stripping rules
|
|
119
|
+
here, so all three tied and source order decided it — the control won and painted a second destructive
|
|
120
|
+
ring inside the group's. Listing the combination explicitly makes it (0,4,0), which settles it by
|
|
121
|
+
specificity rather than by which snippet Shopify happens to concatenate last. */
|
|
122
|
+
.bl-input-group .bl-input:focus-visible,
|
|
123
|
+
.bl-input-group .bl-textarea:focus-visible,
|
|
124
|
+
.bl-input-group .bl-input[aria-invalid='true'],
|
|
125
|
+
.bl-input-group .bl-textarea[aria-invalid='true'],
|
|
126
|
+
.bl-input-group .bl-input[aria-invalid='true']:focus-visible,
|
|
127
|
+
.bl-input-group .bl-textarea[aria-invalid='true']:focus-visible {
|
|
128
|
+
border: 0;
|
|
129
|
+
box-shadow: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* an invalid control inside a group colours the group, not itself: the text stays readable and the group
|
|
133
|
+
carries the error */
|
|
134
|
+
.bl-input-group .bl-input[aria-invalid='true'],
|
|
135
|
+
.bl-input-group .bl-textarea[aria-invalid='true'] {
|
|
136
|
+
color: var(--foreground);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.bl-input-group__addon {
|
|
140
|
+
display: flex;
|
|
141
|
+
height: auto;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: center;
|
|
144
|
+
gap: var(--bl-control-addon-gap);
|
|
145
|
+
padding-block: var(--bl-input-group-md-padding-y);
|
|
146
|
+
color: var(--muted-foreground);
|
|
147
|
+
font-family: var(--bl-font-sans);
|
|
148
|
+
font-size: var(--bl-input-group-md-font-size);
|
|
149
|
+
line-height: var(--bl-input-group-md-line-height);
|
|
150
|
+
font-weight: 500;
|
|
151
|
+
cursor: text;
|
|
152
|
+
user-select: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.bl-input-group__addon .bl-icon {
|
|
156
|
+
width: var(--bl-control-addon-icon-size);
|
|
157
|
+
height: var(--bl-control-addon-icon-size);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* The negative inline margin is upstream's optical correction, kept deliberately (spec: Addons): a chip
|
|
161
|
+
inside a padded box otherwise reads as inset from the text beside it. */
|
|
162
|
+
.bl-input-group__addon[data-align='inline-start'] {
|
|
163
|
+
order: -1;
|
|
164
|
+
padding-inline-start: var(--bl-input-group-md-padding-x);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.bl-input-group__addon[data-align='inline-start']:has(.bl-button) {
|
|
168
|
+
margin-inline-start: -0.3rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.bl-input-group__addon[data-align='inline-end'] {
|
|
172
|
+
order: 1;
|
|
173
|
+
padding-inline-end: var(--bl-input-group-md-padding-x);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.bl-input-group__addon[data-align='inline-end']:has(.bl-button) {
|
|
177
|
+
margin-inline-end: -0.3rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.bl-input-group__addon[data-align='block-start'],
|
|
181
|
+
.bl-input-group__addon[data-align='block-end'] {
|
|
182
|
+
width: 100%;
|
|
183
|
+
justify-content: flex-start;
|
|
184
|
+
padding-inline: var(--bl-input-group-md-padding-x);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.bl-input-group__addon[data-align='block-start'] {
|
|
188
|
+
order: -1;
|
|
189
|
+
padding-block-start: var(--bl-control-addon-gap);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.bl-input-group__addon[data-align='block-end'] {
|
|
193
|
+
order: 1;
|
|
194
|
+
padding-block-end: var(--bl-control-addon-gap);
|
|
195
|
+
}
|
|
196
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Input as a snippet, usable from any section, block or form (spec: components/input/spec.md).
|
|
3
|
+
Input owns its box and nothing else: no label, no description, no error text. Render a <label> beside it.
|
|
4
|
+
|
|
5
|
+
@param {string} [type] - native input type (default 'text'); text | email | password | search | tel | url | number | date | file
|
|
6
|
+
@param {string} [name] - form field name
|
|
7
|
+
@param {string} [id] - id, so a <label for> can point at it
|
|
8
|
+
@param {string} [value] - current value
|
|
9
|
+
@param {string} [placeholder] - placeholder text
|
|
10
|
+
@param {boolean} [required] - required attribute
|
|
11
|
+
@param {boolean} [disabled] - disabled attribute
|
|
12
|
+
@param {boolean} [invalid] - renders aria-invalid: destructive border, ring and value text
|
|
13
|
+
@param {string} [autocomplete] - autocomplete token
|
|
14
|
+
@param {string} [attrs] - extra attributes, e.g. 'min="1"' or block.shopify_attributes
|
|
15
|
+
@param {string} [class] - extra classes
|
|
16
|
+
|
|
17
|
+
@example
|
|
18
|
+
{% render 'input', type: 'email', name: 'contact[email]', id: 'email', placeholder: 'you@example.com', required: true %}
|
|
19
|
+
{% enddoc %}
|
|
20
|
+
|
|
21
|
+
{%- liquid
|
|
22
|
+
assign t = type | default: 'text'
|
|
23
|
+
assign classes = 'bl-input'
|
|
24
|
+
if class
|
|
25
|
+
assign classes = classes | append: ' ' | append: class
|
|
26
|
+
endif
|
|
27
|
+
-%}
|
|
28
|
+
<input
|
|
29
|
+
type="{{ t }}"
|
|
30
|
+
class="{{ classes }}"
|
|
31
|
+
data-slot="input"
|
|
32
|
+
{%- if name != blank %} name="{{ name }}"{% endif -%}
|
|
33
|
+
{%- if id != blank %} id="{{ id }}"{% endif -%}
|
|
34
|
+
{%- if value != blank %} value="{{ value | escape }}"{% endif -%}
|
|
35
|
+
{%- if placeholder != blank %} placeholder="{{ placeholder | escape }}"{% endif -%}
|
|
36
|
+
{%- if autocomplete != blank %} autocomplete="{{ autocomplete }}"{% endif -%}
|
|
37
|
+
{%- if required %} required{% endif -%}
|
|
38
|
+
{%- if disabled %} disabled{% endif -%}
|
|
39
|
+
{%- if invalid %} aria-invalid="true"{% endif -%}
|
|
40
|
+
{{ attrs }}
|
|
41
|
+
>
|
|
42
|
+
|
|
43
|
+
{% stylesheet %}
|
|
44
|
+
/* Mirrors registry/src/ui/input/input.tsx. Colours come from the scheme class (--input, --ring ...);
|
|
45
|
+
geometry from the input/* component tokens in baseline-tokens.liquid (ADR-0017). */
|
|
46
|
+
.bl-input {
|
|
47
|
+
width: 100%;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
height: var(--bl-input-md-height);
|
|
50
|
+
padding: var(--bl-input-md-padding-y) var(--bl-input-md-padding-x);
|
|
51
|
+
border: var(--bl-input-md-border-width) solid var(--input);
|
|
52
|
+
border-radius: var(--bl-input-md-radius);
|
|
53
|
+
background-color: transparent;
|
|
54
|
+
color: var(--foreground);
|
|
55
|
+
font-family: var(--bl-font-sans);
|
|
56
|
+
font-size: var(--bl-input-md-font-size);
|
|
57
|
+
line-height: var(--bl-input-md-line-height);
|
|
58
|
+
/* type=file lays its button and "no file chosen" label out as in-flow content, which otherwise sits at
|
|
59
|
+
the top of a fixed-height box; align-content centres it without touching display. */
|
|
60
|
+
align-content: center;
|
|
61
|
+
outline: none;
|
|
62
|
+
transition: color 150ms, border-color 150ms, box-shadow 150ms;
|
|
63
|
+
}
|
|
64
|
+
.bl-input::placeholder { color: var(--muted-foreground); }
|
|
65
|
+
.bl-input:focus-visible {
|
|
66
|
+
border-color: var(--primary);
|
|
67
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
68
|
+
}
|
|
69
|
+
/* invalid is set here, never inherited from a surrounding field, so a bare input matches one inside a Field */
|
|
70
|
+
.bl-input[aria-invalid='true'] {
|
|
71
|
+
border-color: var(--destructive);
|
|
72
|
+
color: var(--destructive);
|
|
73
|
+
}
|
|
74
|
+
.bl-input[aria-invalid='true']:focus-visible {
|
|
75
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring-invalid);
|
|
76
|
+
}
|
|
77
|
+
.bl-input:disabled {
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
}
|
|
82
|
+
/* type=file lays its button out as in-flow content, so block padding pushes it past the bottom of the
|
|
83
|
+
fixed-height box; align-content above centres it once the padding is gone. */
|
|
84
|
+
.bl-input[type='file'] {
|
|
85
|
+
padding-block: 0;
|
|
86
|
+
/* Input Group's start padding for a leading button (input-group.tsx), so the file button sits like one */
|
|
87
|
+
padding-inline-start: calc(var(--bl-input-group-md-padding-x) - 0.3rem);
|
|
88
|
+
}
|
|
89
|
+
/* The number spinner is browser chrome Figma does not draw, and in Blink it appears on hover and shifts
|
|
90
|
+
the value. Hidden on every platform (spec: components/input/spec.md). Skeleton's quantity widget draws
|
|
91
|
+
its own +/- buttons, so nothing is lost on a storefront. */
|
|
92
|
+
.bl-input[type='number'] {
|
|
93
|
+
appearance: textfield;
|
|
94
|
+
}
|
|
95
|
+
.bl-input[type='number']::-webkit-inner-spin-button,
|
|
96
|
+
.bl-input[type='number']::-webkit-outer-spin-button {
|
|
97
|
+
appearance: none;
|
|
98
|
+
margin: 0;
|
|
99
|
+
}
|
|
100
|
+
/* the browser's own file button, styled as Button secondary xs */
|
|
101
|
+
.bl-input::file-selector-button {
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
margin-inline-end: var(--bl-input-md-gap);
|
|
105
|
+
height: var(--bl-button-xs-height);
|
|
106
|
+
padding-inline: var(--bl-button-xs-padding-x);
|
|
107
|
+
border: 0;
|
|
108
|
+
border-radius: var(--bl-button-xs-radius);
|
|
109
|
+
background-color: var(--secondary);
|
|
110
|
+
color: var(--secondary-foreground);
|
|
111
|
+
font-family: inherit;
|
|
112
|
+
font-size: var(--bl-button-xs-font-size);
|
|
113
|
+
font-weight: var(--bl-button-font-weight);
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
/* quantity fields are the one place a storefront wants a narrow box rather than a full-width one */
|
|
117
|
+
.bl-input--quantity {
|
|
118
|
+
width: auto;
|
|
119
|
+
max-width: 6rem;
|
|
120
|
+
text-align: center;
|
|
121
|
+
}
|
|
122
|
+
/* 16px on phones stops iOS zooming on focus; the token size from the md breakpoint up (shadcn's rule) */
|
|
123
|
+
@media (max-width: 767px) {
|
|
124
|
+
.bl-input { font-size: 1rem; }
|
|
125
|
+
}
|
|
126
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Item Group as a snippet (spec: components/item/spec.md): a list of items (role="list"), the gap between them
|
|
3
|
+
following their size, as React's ItemGroup.
|
|
4
|
+
|
|
5
|
+
@param {string} content - the items, captured from the item snippet (required)
|
|
6
|
+
@param {string} [class] - extra classes
|
|
7
|
+
|
|
8
|
+
@example
|
|
9
|
+
{%- capture rows -%}
|
|
10
|
+
{%- for product in collection.products limit: 3 -%}
|
|
11
|
+
{% render 'item', title: product.title, description: product.vendor, image: product.featured_image, href: product.url, size: 'sm' %}
|
|
12
|
+
{%- endfor -%}
|
|
13
|
+
{%- endcapture -%}
|
|
14
|
+
{% render 'item-group', content: rows %}
|
|
15
|
+
{% enddoc %}
|
|
16
|
+
|
|
17
|
+
<div class="bl-item-group{% if class %} {{ class }}{% endif %}" role="list" data-slot="item-group">
|
|
18
|
+
{{- content -}}
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
{% stylesheet %}
|
|
22
|
+
/* Mirrors ItemGroup in registry/src/ui/item/item.tsx. */
|
|
23
|
+
.bl-item-group {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
width: 100%;
|
|
27
|
+
gap: var(--bl-item-group-md-gap);
|
|
28
|
+
}
|
|
29
|
+
.bl-item-group:has(.bl-item--sm) { gap: var(--bl-item-group-sm-gap); }
|
|
30
|
+
.bl-item-group:has(.bl-item--xs) { gap: var(--bl-item-group-xs-gap); }
|
|
31
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=4360-299
|
|
2
|
+
// source=platforms/shopify/theme/snippets/item.liquid
|
|
3
|
+
// component=item (snippet)
|
|
4
|
+
// Shopify Code Connect template (label "Shopify (Liquid)"): the item snippet; a list of them is the item-group snippet.
|
|
5
|
+
import figma from "figma";
|
|
6
|
+
const instance = figma.selectedInstance;
|
|
7
|
+
|
|
8
|
+
const variant = instance.getEnum("Variant", { default: "default", outline: "outline", muted: "muted" });
|
|
9
|
+
const size = instance.getEnum("Size", { md: "md", sm: "sm", xs: "xs" });
|
|
10
|
+
const showMedia = instance.getBoolean("Show Media");
|
|
11
|
+
const showActions = instance.getBoolean("Show Actions");
|
|
12
|
+
|
|
13
|
+
// Title and description are component properties (2026-10-02): the Content slot became a fixed title and
|
|
14
|
+
// description, since they are not drop-in content.
|
|
15
|
+
const title = instance.getString("Title");
|
|
16
|
+
const description = instance.getBoolean("Show Description") ? instance.getString("Description") : "";
|
|
17
|
+
|
|
18
|
+
let media = "";
|
|
19
|
+
if (showMedia) {
|
|
20
|
+
const part = instance.findInstance(".Item/Media");
|
|
21
|
+
const kind = part && part.type === "INSTANCE" ? part.getEnum("Variant", { icon: "icon", image: "image" }) : "icon";
|
|
22
|
+
media = kind === "image" ? "image: product.featured_image" : "icon: 'success'";
|
|
23
|
+
}
|
|
24
|
+
const args = [
|
|
25
|
+
`title: '${title}'`,
|
|
26
|
+
description ? `description: '${description}'` : "",
|
|
27
|
+
variant !== "default" ? `variant: '${variant}'` : "",
|
|
28
|
+
size !== "md" ? `size: '${size}'` : "",
|
|
29
|
+
media,
|
|
30
|
+
showActions ? "actions: item_actions" : "",
|
|
31
|
+
].filter(Boolean).join(", ");
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
example: showActions
|
|
35
|
+
? figma.code`{%- capture item_actions -%}{% render 'button', label: 'Action', variant: 'outline', size: 'sm' %}{%- endcapture -%}
|
|
36
|
+
{% render 'item', ${args} %}`
|
|
37
|
+
: figma.code`{% render 'item', ${args} %}`,
|
|
38
|
+
id: "shopify-item",
|
|
39
|
+
metadata: { nestable: true },
|
|
40
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Item as a snippet (spec: components/item/spec.md). A row: optional media (an icon or an image), a title and
|
|
3
|
+
description, and actions at the end. A link item (`href`) is one <a>: it renders no actions and its description takes
|
|
4
|
+
no links, because nothing interactive may sit inside a link. Inside item-group it is a list item.
|
|
5
|
+
|
|
6
|
+
@param {string} title - one line; longer titles are cut off
|
|
7
|
+
@param {string} [description] - two lines at most; inline HTML allowed (not inside a link item)
|
|
8
|
+
@param {string} [variant] - default | outline | muted
|
|
9
|
+
@param {string} [size] - md (default) | sm | xs
|
|
10
|
+
@param {string} [icon] - Baseline system icon name (snippets/icon.liquid) as the media
|
|
11
|
+
@param {image} [image] - an image as the media (square, cropped)
|
|
12
|
+
@param {string} [image_alt] - alt text for the image; empty when the title already names it
|
|
13
|
+
@param {string} [href] - makes the whole row a link
|
|
14
|
+
@param {string} [actions] - ready markup for the end of the row, e.g. captured button snippets
|
|
15
|
+
@param {string} [aside] - a right-hand value that does not grow (a second content column, e.g. a price)
|
|
16
|
+
@param {string} [class] - extra classes
|
|
17
|
+
|
|
18
|
+
@example
|
|
19
|
+
{%- capture buy -%}{% render 'button', label: 'Add', size: 'sm', variant: 'outline' %}{%- endcapture -%}
|
|
20
|
+
{% render 'item', title: product.title, description: product.vendor, image: product.featured_image, actions: buy %}
|
|
21
|
+
{% enddoc %}
|
|
22
|
+
|
|
23
|
+
{%- liquid
|
|
24
|
+
assign v = variant | default: 'default'
|
|
25
|
+
case v
|
|
26
|
+
when 'outline', 'muted'
|
|
27
|
+
else
|
|
28
|
+
assign v = 'default'
|
|
29
|
+
endcase
|
|
30
|
+
assign s = size | default: 'md'
|
|
31
|
+
case s
|
|
32
|
+
when 'sm', 'xs'
|
|
33
|
+
else
|
|
34
|
+
assign s = 'md'
|
|
35
|
+
endcase
|
|
36
|
+
assign classes = 'bl-item bl-item--' | append: v | append: ' bl-item--' | append: s
|
|
37
|
+
if description != blank
|
|
38
|
+
assign classes = classes | append: ' bl-item--has-description'
|
|
39
|
+
endif
|
|
40
|
+
if class
|
|
41
|
+
assign classes = classes | append: ' ' | append: class
|
|
42
|
+
endif
|
|
43
|
+
assign tag = 'div'
|
|
44
|
+
if href != blank
|
|
45
|
+
assign tag = 'a'
|
|
46
|
+
endif
|
|
47
|
+
-%}
|
|
48
|
+
<{{ tag }}
|
|
49
|
+
class="{{ classes }}"
|
|
50
|
+
data-slot="item"
|
|
51
|
+
data-size="{{ s }}"
|
|
52
|
+
{% if href != blank %}
|
|
53
|
+
href="{{ href }}"
|
|
54
|
+
{% else %}
|
|
55
|
+
role="listitem"
|
|
56
|
+
{% endif %}
|
|
57
|
+
>
|
|
58
|
+
{%- if image != blank -%}
|
|
59
|
+
<div class="bl-item__media bl-item__media--image" data-slot="item-media">
|
|
60
|
+
{{- image | image_url: width: 160, height: 160, crop: 'center' | image_tag: alt: image_alt, loading: 'lazy' -}}
|
|
61
|
+
</div>
|
|
62
|
+
{%- elsif icon != blank -%}
|
|
63
|
+
<div class="bl-item__media bl-item__media--icon" data-slot="item-media">{% render 'icon', name: icon %}</div>
|
|
64
|
+
{%- endif -%}
|
|
65
|
+
<div class="bl-item__content" data-slot="item-content">
|
|
66
|
+
<div class="bl-item__title" data-slot="item-title">{{ title | escape }}</div>
|
|
67
|
+
{%- if description != blank -%}
|
|
68
|
+
<p class="bl-item__description" data-slot="item-description">
|
|
69
|
+
{%- if href != blank -%}{{ description | strip_html }}{%- else -%}{{ description }}{%- endif -%}
|
|
70
|
+
</p>
|
|
71
|
+
{%- endif -%}
|
|
72
|
+
</div>
|
|
73
|
+
{%- if aside != blank -%}
|
|
74
|
+
<div class="bl-item__content bl-item__content--aside" data-slot="item-content">{{ aside }}</div>
|
|
75
|
+
{%- endif -%}
|
|
76
|
+
{%- if actions != blank and href == blank -%}
|
|
77
|
+
<div class="bl-item__actions" data-slot="item-actions">{{ actions }}</div>
|
|
78
|
+
{%- endif -%}
|
|
79
|
+
</{{ tag }}>
|
|
80
|
+
|
|
81
|
+
{% stylesheet %}
|
|
82
|
+
/* Mirrors registry/src/ui/item/item.tsx. Colours from the scheme; geometry from the item/* tokens; muted is the
|
|
83
|
+
item/muted/background tint (muted at 50 %). */
|
|
84
|
+
.bl-item {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-wrap: wrap;
|
|
87
|
+
align-items: center;
|
|
88
|
+
width: 100%;
|
|
89
|
+
border: var(--bl-item-border-width) solid transparent;
|
|
90
|
+
border-radius: var(--bl-item-radius);
|
|
91
|
+
color: inherit;
|
|
92
|
+
font-size: var(--bl-item-title-font-size);
|
|
93
|
+
line-height: var(--bl-item-title-line-height);
|
|
94
|
+
text-decoration: none;
|
|
95
|
+
outline: none;
|
|
96
|
+
transition: background-color 100ms, border-color 100ms;
|
|
97
|
+
}
|
|
98
|
+
.bl-item--outline { border-color: var(--border); }
|
|
99
|
+
.bl-item--muted { background-color: var(--bl-item-muted-background); }
|
|
100
|
+
a.bl-item:hover { background-color: var(--muted); }
|
|
101
|
+
.bl-item:focus-visible {
|
|
102
|
+
border-color: var(--ring);
|
|
103
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
104
|
+
}
|
|
105
|
+
.bl-item--md { gap: var(--bl-item-md-gap); padding: var(--bl-item-md-padding-y) var(--bl-item-md-padding-x); }
|
|
106
|
+
.bl-item--sm { gap: var(--bl-item-sm-gap); padding: var(--bl-item-sm-padding-y) var(--bl-item-sm-padding-x); }
|
|
107
|
+
.bl-item--xs { gap: var(--bl-item-xs-gap); padding: var(--bl-item-xs-padding-y) var(--bl-item-xs-padding-x); }
|
|
108
|
+
|
|
109
|
+
.bl-item__media {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-shrink: 0;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
gap: var(--bl-item-actions-gap);
|
|
115
|
+
}
|
|
116
|
+
/* with a description the media aligns to the top and drops 2px, as upstream */
|
|
117
|
+
.bl-item--has-description .bl-item__media { align-self: flex-start; transform: translateY(2px); }
|
|
118
|
+
.bl-item__media--icon .bl-icon { width: var(--bl-item-media-icon-size); height: var(--bl-item-media-icon-size); }
|
|
119
|
+
.bl-item__media--image {
|
|
120
|
+
width: var(--bl-item-media-md-size);
|
|
121
|
+
height: var(--bl-item-media-md-size);
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
border-radius: var(--bl-item-media-radius);
|
|
124
|
+
}
|
|
125
|
+
.bl-item--sm .bl-item__media--image { width: var(--bl-item-media-sm-size); height: var(--bl-item-media-sm-size); }
|
|
126
|
+
.bl-item--xs .bl-item__media--image { width: var(--bl-item-media-xs-size); height: var(--bl-item-media-xs-size); }
|
|
127
|
+
.bl-item__media--image img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
128
|
+
|
|
129
|
+
.bl-item__content { display: flex; flex: 1; flex-direction: column; gap: var(--bl-item-md-content-gap); }
|
|
130
|
+
.bl-item--sm .bl-item__content { gap: var(--bl-item-sm-content-gap); }
|
|
131
|
+
.bl-item--xs .bl-item__content { gap: var(--bl-item-xs-content-gap); }
|
|
132
|
+
.bl-item__content + .bl-item__content { flex: none; }
|
|
133
|
+
|
|
134
|
+
.bl-item__title {
|
|
135
|
+
display: -webkit-box;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
-webkit-box-orient: vertical;
|
|
138
|
+
-webkit-line-clamp: 1;
|
|
139
|
+
width: fit-content;
|
|
140
|
+
font-size: var(--bl-item-title-font-size);
|
|
141
|
+
font-weight: var(--bl-item-title-font-weight);
|
|
142
|
+
line-height: var(--bl-item-title-line-height);
|
|
143
|
+
}
|
|
144
|
+
.bl-item__description {
|
|
145
|
+
display: -webkit-box;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
-webkit-box-orient: vertical;
|
|
148
|
+
-webkit-line-clamp: 2;
|
|
149
|
+
margin: 0;
|
|
150
|
+
color: var(--muted-foreground);
|
|
151
|
+
font-weight: normal;
|
|
152
|
+
text-align: start;
|
|
153
|
+
font-size: var(--bl-item-description-md-font-size);
|
|
154
|
+
line-height: var(--bl-item-description-md-line-height);
|
|
155
|
+
}
|
|
156
|
+
.bl-item--sm .bl-item__description { font-size: var(--bl-item-description-sm-font-size); line-height: var(--bl-item-description-sm-line-height); }
|
|
157
|
+
.bl-item--xs .bl-item__description { font-size: var(--bl-item-description-xs-font-size); line-height: var(--bl-item-description-xs-line-height); }
|
|
158
|
+
.bl-item__description > a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
|
|
159
|
+
.bl-item__description > a:hover { color: var(--primary); }
|
|
160
|
+
|
|
161
|
+
.bl-item__actions { display: flex; align-items: center; gap: var(--bl-item-actions-gap); }
|
|
162
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=2249-44210
|
|
2
|
+
// source=platforms/shopify/theme/snippets/media.liquid
|
|
3
|
+
// component=media (snippet)
|
|
4
|
+
// Shopify Code Connect template (label "Shopify (Liquid)"): the media snippet. A merchant-placed one is the Media theme
|
|
5
|
+
// block (blocks/media.liquid), whose ratio select has the same seven values plus "adapt to image".
|
|
6
|
+
import figma from "figma";
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
|
|
9
|
+
const ratio = instance.getEnum("Aspect Ratio", {
|
|
10
|
+
"1-1": "1",
|
|
11
|
+
"3-2": "1.5",
|
|
12
|
+
"2-3": "0.6667",
|
|
13
|
+
"4-3": "1.3333",
|
|
14
|
+
"3-4": "0.75",
|
|
15
|
+
"16-9": "1.7778",
|
|
16
|
+
"9-16": "0.5625",
|
|
17
|
+
});
|
|
18
|
+
const showPlay = instance.getBoolean("Show Play Button");
|
|
19
|
+
const showCaption = instance.getBoolean("Show Caption");
|
|
20
|
+
const caption = instance.getString("Caption");
|
|
21
|
+
|
|
22
|
+
const args = [
|
|
23
|
+
"image: section.settings.image",
|
|
24
|
+
`ratio: ${ratio}`,
|
|
25
|
+
showPlay ? "video: product.media[1]" : "",
|
|
26
|
+
showCaption ? `caption: '${caption}'` : "",
|
|
27
|
+
].filter(Boolean).join(", ");
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
example: figma.code`{% render 'media', ${args} %}`,
|
|
31
|
+
id: "shopify-media",
|
|
32
|
+
metadata: { nestable: true },
|
|
33
|
+
};
|