@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,23 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=4547-83
|
|
2
|
+
// source=platforms/shopify/theme/snippets/navigation-menu-item.liquid
|
|
3
|
+
// component=navigation-menu-item (snippet)
|
|
4
|
+
// Shopify Code Connect template (label "Shopify (Liquid)"): a trigger with its panel of links (Show Chevron), or a
|
|
5
|
+
// top-level link drawn as a trigger. State is runtime, so it is not read.
|
|
6
|
+
import figma from "figma";
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
|
|
9
|
+
const label = instance.getString("Label");
|
|
10
|
+
const chevron = instance.getBoolean("Show Chevron");
|
|
11
|
+
const id = "nav-" + label.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
12
|
+
const literal = (s: string) => (s.includes("'") ? `"${s}"` : `'${s}'`);
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
example: chevron
|
|
16
|
+
? figma.code`{%- capture links -%}
|
|
17
|
+
{% render 'navigation-menu-link', title: 'New arrivals', url: '/collections/new' %}
|
|
18
|
+
{%- endcapture -%}
|
|
19
|
+
{% render 'navigation-menu-item', id: '${id}', title: ${literal(label)}, content: links %}`
|
|
20
|
+
: figma.code`{% render 'navigation-menu-item', title: ${literal(label)}, url: '/pages/${id.slice(4)}' %}`,
|
|
21
|
+
id: "shopify-navigation-menu-item",
|
|
22
|
+
metadata: { nestable: true },
|
|
23
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
One top-level item of a Navigation Menu (spec: components/navigation-menu/spec.md): with content, React's
|
|
3
|
+
NavigationMenuTrigger + NavigationMenuContent (a button toggling a <div popover="auto"> anchored below it, opened on
|
|
4
|
+
click and on hover); without, a top-level link drawn as a trigger (upstream's navigationMenuTriggerStyle).
|
|
5
|
+
|
|
6
|
+
@param {string} id - unique on the page: the panel's id and the anchor's name
|
|
7
|
+
@param {string} title - the trigger's or link's text
|
|
8
|
+
@param {string} [url] - the link's address (an item without content)
|
|
9
|
+
@param {boolean} [current] - the current page (a link item): aria-current="page"
|
|
10
|
+
@param {string} [content] - the panel's links, captured from navigation-menu-link snippets
|
|
11
|
+
@param {string} [align] - the panel along its trigger: start (default) | center | end
|
|
12
|
+
|
|
13
|
+
@example
|
|
14
|
+
{%- capture links -%}
|
|
15
|
+
{% render 'navigation-menu-link', title: 'New arrivals', url: '/collections/new' %}
|
|
16
|
+
{%- endcapture -%}
|
|
17
|
+
{% render 'navigation-menu-item', id: 'nav-shop', title: 'Shop', content: links %}
|
|
18
|
+
{% enddoc %}
|
|
19
|
+
|
|
20
|
+
{%- liquid
|
|
21
|
+
assign area = 'block-end span-inline-end'
|
|
22
|
+
if align == 'center'
|
|
23
|
+
assign area = 'block-end'
|
|
24
|
+
elsif align == 'end'
|
|
25
|
+
assign area = 'block-end span-inline-start'
|
|
26
|
+
endif
|
|
27
|
+
-%}
|
|
28
|
+
<li class="bl-navigation-menu__item" data-slot="navigation-menu-item">
|
|
29
|
+
{%- if content != blank -%}
|
|
30
|
+
<button type="button" class="bl-navigation-menu__trigger" data-slot="navigation-menu-trigger" command="toggle-popover" commandfor="{{ id }}" interestfor="{{ id }}" data-interest-delay="50" data-interest-close-delay="50" style="anchor-name: --{{ id }}; interest-delay-start: 50ms; interest-delay-end: 50ms;">
|
|
31
|
+
{{- title | escape -}}
|
|
32
|
+
{%- render 'icon', name: 'chevron-down', class: 'bl-navigation-menu__chevron' -%}
|
|
33
|
+
</button>
|
|
34
|
+
<div popover="auto" id="{{ id }}" class="bl-navigation-menu__content" data-slot="navigation-menu-content" style="position-anchor: --{{ id }}; position-area: {{ area }};">
|
|
35
|
+
<ul class="bl-navigation-menu__links">{{ content }}</ul>
|
|
36
|
+
</div>
|
|
37
|
+
{%- else -%}
|
|
38
|
+
<a class="bl-navigation-menu__trigger" data-slot="navigation-menu-link" href="{{ url }}"{% if current %} aria-current="page"{% endif %}>{{ title | escape }}</a>
|
|
39
|
+
{%- endif -%}
|
|
40
|
+
</li>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=4547-131
|
|
2
|
+
// source=platforms/shopify/theme/snippets/navigation-menu-link.liquid
|
|
3
|
+
// component=navigation-menu-link (snippet)
|
|
4
|
+
// Shopify Code Connect template (label "Shopify (Liquid)"): one panel link; active is the current page, Description and
|
|
5
|
+
// Badge are the snippet's parameters (hover and focus are runtime).
|
|
6
|
+
import figma from "figma";
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
|
|
9
|
+
const literal = (s: string) => (s.includes("'") ? `"${s}"` : `'${s}'`);
|
|
10
|
+
const label = instance.getString("Label");
|
|
11
|
+
const current = instance.getEnum("State", { default: false, hover: false, active: true, focus: false });
|
|
12
|
+
const description = instance.getBoolean("Show Description") ? instance.getString("Description") : "";
|
|
13
|
+
const badge = instance.getBoolean("Show Badge");
|
|
14
|
+
|
|
15
|
+
const args = [
|
|
16
|
+
`title: ${literal(label)}`,
|
|
17
|
+
`url: '#'`,
|
|
18
|
+
current ? "current: true" : "",
|
|
19
|
+
description ? `description: ${literal(description)}` : "",
|
|
20
|
+
badge ? "badge: 'New'" : "",
|
|
21
|
+
].filter(Boolean).join(", ");
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
example: figma.code`{% render 'navigation-menu-link', ${args} %}`,
|
|
25
|
+
id: "shopify-navigation-menu-link",
|
|
26
|
+
metadata: { nestable: true },
|
|
27
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
One link of a Navigation Menu panel (spec: components/navigation-menu/spec.md), React's NavigationMenuLink. Render
|
|
3
|
+
links into a capture and pass it to `navigation-menu-item` as its content.
|
|
4
|
+
|
|
5
|
+
@param {string} title - the link text
|
|
6
|
+
@param {string} url - where it goes
|
|
7
|
+
@param {boolean} [current] - the current page: aria-current="page" and the active tint
|
|
8
|
+
@param {string} [description] - a muted line under the title (upstream's demo ListItem)
|
|
9
|
+
@param {string} [badge] - a small Badge beside the title, e.g. "New" (user, 2026-10-06)
|
|
10
|
+
@param {string} [icon] - a Baseline system icon before the title (snippets/icon.liquid)
|
|
11
|
+
|
|
12
|
+
@example
|
|
13
|
+
{% render 'navigation-menu-link', title: 'Gift cards', url: '/products/gift-card', badge: 'New' %}
|
|
14
|
+
{% enddoc %}
|
|
15
|
+
|
|
16
|
+
<li class="bl-navigation-menu__links-item">
|
|
17
|
+
<a class="bl-navigation-menu__link" data-slot="navigation-menu-link" href="{{ url }}"{% if current %} aria-current="page"{% endif %}>
|
|
18
|
+
{%- if icon != blank -%}{%- render 'icon', name: icon, class: 'bl-navigation-menu__link-icon' -%}{%- endif -%}
|
|
19
|
+
{%- if description != blank or badge != blank -%}
|
|
20
|
+
<span class="bl-navigation-menu__link-body">
|
|
21
|
+
<span class="bl-navigation-menu__link-title">
|
|
22
|
+
{{- title | escape -}}
|
|
23
|
+
{%- if badge != blank %} {% render 'badge', label: badge, size: 'sm' %}{% endif -%}
|
|
24
|
+
</span>
|
|
25
|
+
{%- if description != blank -%}<span class="bl-navigation-menu__link-description">{{ description | escape }}</span>{%- endif -%}
|
|
26
|
+
</span>
|
|
27
|
+
{%- else -%}
|
|
28
|
+
{{- title | escape -}}
|
|
29
|
+
{%- endif -%}
|
|
30
|
+
</a>
|
|
31
|
+
</li>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=2537-49294
|
|
2
|
+
// source=platforms/shopify/theme/snippets/navigation-menu.liquid
|
|
3
|
+
// component=navigation-menu (snippet)
|
|
4
|
+
// Shopify Code Connect template (label "Shopify (Liquid)"): a Shopify menu's two levels as the Navigation Menu (the
|
|
5
|
+
// header section renders its menu setting this way; the navigation-menu block does it elsewhere).
|
|
6
|
+
import figma from "figma";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
example: figma.code`{% render 'navigation-menu', menu: section.settings.menu, id: 'header-nav', aria_label: 'Main' %}`,
|
|
10
|
+
id: "shopify-navigation-menu",
|
|
11
|
+
metadata: { nestable: true },
|
|
12
|
+
};
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Navigation Menu as a snippet (spec: components/navigation-menu/spec.md): React's native markup, a <nav> list
|
|
3
|
+
whose triggers open <div popover="auto"> panels placed below them by CSS anchor positioning, on click and on hover;
|
|
4
|
+
every link is in the page, so the menu is crawlable and works without JavaScript. The shared interest script gives a
|
|
5
|
+
clicked panel Base UI's stickiness and hover to browsers without interestfor (user, 2026-10-06).
|
|
6
|
+
|
|
7
|
+
Either a Shopify menu (two levels: its links, and their child links as each panel) or items composed by hand.
|
|
8
|
+
|
|
9
|
+
@param {object} [menu] - a link_list (section.settings.menu): renders its items
|
|
10
|
+
@param {string} [items] - or the items, captured from navigation-menu-item snippets
|
|
11
|
+
@param {string} [id] - unique on the page; panel ids are <id>-<n> (default: navigation-menu)
|
|
12
|
+
@param {string} [aria_label] - names the nav (default "Main")
|
|
13
|
+
@param {string} [class] - extra classes
|
|
14
|
+
@param {string} [attrs] - extra attributes on the root (block.shopify_attributes)
|
|
15
|
+
|
|
16
|
+
@example
|
|
17
|
+
{% render 'navigation-menu', menu: section.settings.menu, id: 'header-nav' %}
|
|
18
|
+
{% enddoc %}
|
|
19
|
+
|
|
20
|
+
{%- liquid
|
|
21
|
+
assign prefix = id | default: 'navigation-menu'
|
|
22
|
+
assign label = aria_label | default: 'Main'
|
|
23
|
+
-%}
|
|
24
|
+
<nav class="bl-navigation-menu{% if class != blank %} {{ class }}{% endif %}" data-slot="navigation-menu" aria-label="{{ label | escape }}" {{ attrs }}>
|
|
25
|
+
<ul class="bl-navigation-menu__list" data-slot="navigation-menu-list">
|
|
26
|
+
{%- if menu != blank -%}
|
|
27
|
+
{%- for link in menu.links -%}
|
|
28
|
+
{%- assign panel_id = prefix | append: '-' | append: forloop.index -%}
|
|
29
|
+
{%- capture links -%}
|
|
30
|
+
{%- for child in link.links -%}
|
|
31
|
+
{% render 'navigation-menu-link', title: child.title, url: child.url, current: child.current %}
|
|
32
|
+
{%- endfor -%}
|
|
33
|
+
{%- endcapture -%}
|
|
34
|
+
{% render 'navigation-menu-item', id: panel_id, title: link.title, url: link.url, current: link.current, content: links %}
|
|
35
|
+
{%- endfor -%}
|
|
36
|
+
{%- else -%}
|
|
37
|
+
{{- items -}}
|
|
38
|
+
{%- endif -%}
|
|
39
|
+
</ul>
|
|
40
|
+
</nav>
|
|
41
|
+
|
|
42
|
+
{% stylesheet %}
|
|
43
|
+
/* Mirrors registry/src/ui/navigation-menu/navigation-menu.tsx. Geometry and tints from the navigation-menu/* tokens;
|
|
44
|
+
the panel is Popover's look. */
|
|
45
|
+
.bl-navigation-menu {
|
|
46
|
+
position: relative;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex: 1;
|
|
49
|
+
max-width: max-content;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
}
|
|
53
|
+
.bl-navigation-menu__list,
|
|
54
|
+
.bl-navigation-menu__links {
|
|
55
|
+
margin: 0;
|
|
56
|
+
padding: 0;
|
|
57
|
+
list-style: none;
|
|
58
|
+
}
|
|
59
|
+
.bl-navigation-menu__list {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex: 1;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
gap: 0;
|
|
65
|
+
}
|
|
66
|
+
.bl-navigation-menu__item { position: relative; }
|
|
67
|
+
|
|
68
|
+
/* the trigger, and a top-level link drawn as one (upstream's navigationMenuTriggerStyle) */
|
|
69
|
+
.bl-navigation-menu__trigger {
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
width: max-content;
|
|
72
|
+
height: var(--bl-navigation-menu-trigger-height);
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: var(--bl-navigation-menu-trigger-padding-y) var(--bl-navigation-menu-trigger-padding-x);
|
|
77
|
+
border: 0;
|
|
78
|
+
border-radius: var(--bl-navigation-menu-trigger-radius);
|
|
79
|
+
background: transparent;
|
|
80
|
+
color: inherit;
|
|
81
|
+
font-family: inherit;
|
|
82
|
+
font-size: var(--bl-navigation-menu-trigger-font-size);
|
|
83
|
+
font-weight: var(--bl-navigation-menu-trigger-font-weight);
|
|
84
|
+
line-height: var(--bl-navigation-menu-trigger-line-height);
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
outline: none;
|
|
88
|
+
transition: background-color 150ms, box-shadow 150ms;
|
|
89
|
+
}
|
|
90
|
+
.bl-navigation-menu__trigger:is(:hover, :focus) { background-color: var(--muted); }
|
|
91
|
+
/* focus keeps Baseline's ring role (already translucent), as Button's */
|
|
92
|
+
.bl-navigation-menu__trigger:focus-visible { box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring); }
|
|
93
|
+
/* open: its item holds an open panel; upstream's data-open:bg-muted/50, muted again when hovered or focused */
|
|
94
|
+
.bl-navigation-menu__item:has(> :popover-open) > .bl-navigation-menu__trigger { background-color: var(--bl-navigation-menu-trigger-background-open); }
|
|
95
|
+
.bl-navigation-menu__item:has(> :popover-open) > .bl-navigation-menu__trigger:is(:hover, :focus) { background-color: var(--muted); }
|
|
96
|
+
.bl-navigation-menu__chevron {
|
|
97
|
+
position: relative;
|
|
98
|
+
top: 1px;
|
|
99
|
+
flex: none;
|
|
100
|
+
width: var(--bl-navigation-menu-trigger-icon-size);
|
|
101
|
+
height: var(--bl-navigation-menu-trigger-icon-size);
|
|
102
|
+
margin-inline-start: var(--bl-navigation-menu-trigger-icon-gap);
|
|
103
|
+
transition: rotate 300ms;
|
|
104
|
+
}
|
|
105
|
+
.bl-navigation-menu__item:has(> :popover-open) .bl-navigation-menu__chevron { rotate: 180deg; }
|
|
106
|
+
|
|
107
|
+
/* the panel: <div popover="auto"> below its trigger, Popover's look; hidden while closed so display can transition */
|
|
108
|
+
.bl-navigation-menu__content {
|
|
109
|
+
inset: auto;
|
|
110
|
+
margin: var(--bl-navigation-menu-content-offset) 0 0;
|
|
111
|
+
padding: var(--bl-navigation-menu-content-padding);
|
|
112
|
+
overflow: visible;
|
|
113
|
+
border: 0;
|
|
114
|
+
border-radius: var(--bl-navigation-menu-content-radius);
|
|
115
|
+
background-color: var(--popover);
|
|
116
|
+
color: var(--popover-foreground);
|
|
117
|
+
box-shadow: 0 0 0 1px var(--bl-navigation-menu-content-border), 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
118
|
+
position-try-fallbacks: flip-inline;
|
|
119
|
+
transform-origin: top;
|
|
120
|
+
opacity: 0;
|
|
121
|
+
scale: 0.9;
|
|
122
|
+
transition: opacity 150ms, scale 150ms, display 150ms allow-discrete, overlay 150ms allow-discrete;
|
|
123
|
+
}
|
|
124
|
+
.bl-navigation-menu__content:not(:popover-open) { display: none; }
|
|
125
|
+
.bl-navigation-menu__content:popover-open {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
scale: 1;
|
|
128
|
+
transition-duration: 350ms;
|
|
129
|
+
transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
|
|
130
|
+
}
|
|
131
|
+
@starting-style {
|
|
132
|
+
.bl-navigation-menu__content:popover-open { opacity: 0; scale: 0.9; }
|
|
133
|
+
}
|
|
134
|
+
@media (prefers-reduced-motion: reduce) {
|
|
135
|
+
.bl-navigation-menu__content { transition: none; }
|
|
136
|
+
}
|
|
137
|
+
.bl-navigation-menu__links { min-width: 12rem; }
|
|
138
|
+
|
|
139
|
+
/* a link in a panel: NavigationMenuLink. Start-aligned outright: the theme header's `header a` centres its links */
|
|
140
|
+
.bl-navigation-menu__link {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
justify-content: flex-start;
|
|
144
|
+
text-align: start;
|
|
145
|
+
gap: var(--bl-navigation-menu-link-gap);
|
|
146
|
+
padding: var(--bl-navigation-menu-link-padding);
|
|
147
|
+
border-radius: var(--bl-navigation-menu-link-radius);
|
|
148
|
+
color: inherit;
|
|
149
|
+
font-size: var(--bl-navigation-menu-link-font-size);
|
|
150
|
+
line-height: var(--bl-navigation-menu-link-line-height);
|
|
151
|
+
text-decoration: none;
|
|
152
|
+
outline: none;
|
|
153
|
+
transition: background-color 150ms;
|
|
154
|
+
}
|
|
155
|
+
.bl-navigation-menu__link[aria-current='page'] { background-color: var(--bl-navigation-menu-link-background-active); }
|
|
156
|
+
.bl-navigation-menu__link:is(:hover, :focus) { background-color: var(--muted); }
|
|
157
|
+
.bl-navigation-menu__link-icon {
|
|
158
|
+
flex: none;
|
|
159
|
+
width: var(--bl-navigation-menu-link-icon-size);
|
|
160
|
+
height: var(--bl-navigation-menu-link-icon-size);
|
|
161
|
+
}
|
|
162
|
+
.bl-navigation-menu__link-body {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
gap: var(--bl-navigation-menu-link-description-gap);
|
|
166
|
+
}
|
|
167
|
+
.bl-navigation-menu__link-title {
|
|
168
|
+
display: flex;
|
|
169
|
+
align-items: center;
|
|
170
|
+
gap: var(--bl-navigation-menu-link-gap);
|
|
171
|
+
font-weight: var(--bl-navigation-menu-link-title-font-weight);
|
|
172
|
+
line-height: 1;
|
|
173
|
+
}
|
|
174
|
+
.bl-navigation-menu__link-description {
|
|
175
|
+
display: -webkit-box;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
-webkit-box-orient: vertical;
|
|
178
|
+
-webkit-line-clamp: 2;
|
|
179
|
+
color: var(--muted-foreground);
|
|
180
|
+
}
|
|
181
|
+
{% endstylesheet %}
|
|
182
|
+
|
|
183
|
+
{% javascript %}
|
|
184
|
+
/* baseline:script:start (generated by scripts/gen-html.mjs from platforms/html/src/interest.js; do not edit) */
|
|
185
|
+
/* Interest invokers without React, for the HTML build and Shopify (Navigation Menu, Tooltip, Hover Card): the plain-JS
|
|
186
|
+
twin of registry/src/lib/interest.tsx (InterestFallback), which a static page cannot run. Keep the two in step.
|
|
187
|
+
One set of delegated listeners per document:
|
|
188
|
+
- every browser: a popover its invoker also toggles by command (commandfor, Navigation Menu's trigger) STICKS once
|
|
189
|
+
clicked, as Floating UI's useHover + useClick do for Base UI: a click opens it and losing interest no longer closes
|
|
190
|
+
it, and a click on a popover interest opened keeps it open; the next click, Escape, a click outside or another auto
|
|
191
|
+
popover closes it. Natively that cancels the popover's `loseinterest` event.
|
|
192
|
+
- where the browser lacks interestfor (Firefox and Safari, 2026-10): pointer over or focus on an [interestfor]
|
|
193
|
+
element shows its popover after the trigger's data-interest-delay, pointer out or blur hides it after
|
|
194
|
+
data-interest-close-delay unless the pointer moved onto the popover (WCAG 1.4.13), Escape hides what this opened.
|
|
195
|
+
Source of truth: this file; scripts/gen-html.mjs copies it to dist/interest.js and writes it into the Shopify
|
|
196
|
+
navigation-menu snippet. */
|
|
197
|
+
(function () {
|
|
198
|
+
if (window.baselineInterest) return;
|
|
199
|
+
window.baselineInterest = true;
|
|
200
|
+
|
|
201
|
+
var sticky = new WeakSet();
|
|
202
|
+
document.addEventListener('command', function (e) {
|
|
203
|
+
var target = e.target;
|
|
204
|
+
if (e.command !== 'toggle-popover' && e.command !== 'show-popover') return;
|
|
205
|
+
if (!target.matches(':popover-open')) sticky.add(target);
|
|
206
|
+
else if (!sticky.has(target)) {
|
|
207
|
+
e.preventDefault();
|
|
208
|
+
sticky.add(target);
|
|
209
|
+
}
|
|
210
|
+
}, true);
|
|
211
|
+
document.addEventListener('toggle', function (e) {
|
|
212
|
+
if (e.newState === 'closed') sticky.delete(e.target);
|
|
213
|
+
}, true);
|
|
214
|
+
document.addEventListener('loseinterest', function (e) {
|
|
215
|
+
if (sticky.has(e.target)) e.preventDefault();
|
|
216
|
+
}, true);
|
|
217
|
+
|
|
218
|
+
if ('interestForElement' in HTMLButtonElement.prototype) return;
|
|
219
|
+
|
|
220
|
+
var DEFAULT_DELAY = 500, DEFAULT_CLOSE_DELAY = 250;
|
|
221
|
+
var timers = new WeakMap(), invokerOf = new WeakMap(), shown = new Set();
|
|
222
|
+
function ms(el, attr, fallback) {
|
|
223
|
+
var v = Number(el.getAttribute(attr));
|
|
224
|
+
return el.hasAttribute(attr) && isFinite(v) ? v : fallback;
|
|
225
|
+
}
|
|
226
|
+
function targetOf(invoker) {
|
|
227
|
+
var id = invoker && invoker.getAttribute('interestfor');
|
|
228
|
+
return id ? document.getElementById(id) : null;
|
|
229
|
+
}
|
|
230
|
+
function schedule(target, fn, delay) {
|
|
231
|
+
clearTimeout(timers.get(target));
|
|
232
|
+
timers.set(target, setTimeout(fn, delay));
|
|
233
|
+
}
|
|
234
|
+
function show(invoker) {
|
|
235
|
+
var target = targetOf(invoker);
|
|
236
|
+
if (!target) return;
|
|
237
|
+
schedule(target, function () {
|
|
238
|
+
if (!target.matches(':popover-open')) target.showPopover();
|
|
239
|
+
invokerOf.set(target, invoker);
|
|
240
|
+
shown.add(target);
|
|
241
|
+
}, ms(invoker, 'data-interest-delay', DEFAULT_DELAY));
|
|
242
|
+
}
|
|
243
|
+
function hide(target) {
|
|
244
|
+
if (sticky.has(target)) return;
|
|
245
|
+
var invoker = invokerOf.get(target);
|
|
246
|
+
schedule(target, function () {
|
|
247
|
+
if (target.matches(':popover-open')) target.hidePopover();
|
|
248
|
+
shown.delete(target);
|
|
249
|
+
}, invoker ? ms(invoker, 'data-interest-close-delay', DEFAULT_CLOSE_DELAY) : DEFAULT_CLOSE_DELAY);
|
|
250
|
+
}
|
|
251
|
+
function keep(target) { clearTimeout(timers.get(target)); }
|
|
252
|
+
function closestInvoker(n) { return n instanceof Element ? n.closest('[interestfor]') : null; }
|
|
253
|
+
function shownTargetAround(n) {
|
|
254
|
+
if (!(n instanceof Node)) return null;
|
|
255
|
+
var hit = null;
|
|
256
|
+
shown.forEach(function (t) { if (!hit && t.contains(n)) hit = t; });
|
|
257
|
+
return hit;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
document.addEventListener('pointerover', function (e) {
|
|
261
|
+
var invoker = closestInvoker(e.target);
|
|
262
|
+
if (invoker) {
|
|
263
|
+
var t = targetOf(invoker);
|
|
264
|
+
if (t && shown.has(t)) keep(t);
|
|
265
|
+
else show(invoker);
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
var around = shownTargetAround(e.target);
|
|
269
|
+
if (around) keep(around);
|
|
270
|
+
});
|
|
271
|
+
document.addEventListener('pointerout', function (e) {
|
|
272
|
+
var to = e.relatedTarget;
|
|
273
|
+
var fromInvoker = closestInvoker(e.target);
|
|
274
|
+
var target = fromInvoker ? targetOf(fromInvoker) : shownTargetAround(e.target);
|
|
275
|
+
if (!target) return;
|
|
276
|
+
if (to instanceof Node && (target.contains(to) || (fromInvoker && fromInvoker.contains(to)) || targetOf(closestInvoker(to)) === target)) return;
|
|
277
|
+
if (fromInvoker && !shown.has(target)) { clearTimeout(timers.get(target)); return; }
|
|
278
|
+
hide(target);
|
|
279
|
+
});
|
|
280
|
+
document.addEventListener('focusin', function (e) {
|
|
281
|
+
var invoker = closestInvoker(e.target);
|
|
282
|
+
if (invoker) show(invoker);
|
|
283
|
+
});
|
|
284
|
+
document.addEventListener('focusout', function (e) {
|
|
285
|
+
var target = targetOf(closestInvoker(e.target));
|
|
286
|
+
if (!target) return;
|
|
287
|
+
if (!shown.has(target)) { clearTimeout(timers.get(target)); return; }
|
|
288
|
+
hide(target);
|
|
289
|
+
});
|
|
290
|
+
document.addEventListener('keydown', function (e) {
|
|
291
|
+
if (e.key !== 'Escape') return;
|
|
292
|
+
shown.forEach(function (t) {
|
|
293
|
+
clearTimeout(timers.get(t));
|
|
294
|
+
if (t.matches(':popover-open')) t.hidePopover();
|
|
295
|
+
});
|
|
296
|
+
shown.clear();
|
|
297
|
+
});
|
|
298
|
+
})();
|
|
299
|
+
/* baseline:script:end */
|
|
300
|
+
{% endjavascript %}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=1706-5326
|
|
2
|
+
// source=platforms/shopify/theme/snippets/pagination.liquid
|
|
3
|
+
// component=pagination (snippet)
|
|
4
|
+
// Shopify Code Connect template (label "Shopify (Liquid)"): the pagination snippet renders the paginate object, so the
|
|
5
|
+
// Figma links map to nothing typed. The Variant is the project's look (ADR-0031): the theme installs one and makes it
|
|
6
|
+
// the snippet's default, so it maps to nothing here.
|
|
7
|
+
import figma from "figma";
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
example: figma.code`{% render 'pagination', paginate: paginate %}`,
|
|
11
|
+
id: "shopify-pagination",
|
|
12
|
+
metadata: { nestable: true },
|
|
13
|
+
};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Pagination as a snippet (spec: components/pagination/spec.md): renders Shopify's paginate object as the React
|
|
3
|
+
markup, nav > ul > li, with every link a Button (the button snippet), Previous and Next with the system chevrons and
|
|
4
|
+
their text (always rendered; disabled on the first or last page), the elided pages as the more-horizontal glyph
|
|
5
|
+
announced as "More pages". In a pagination narrower than 32rem (a container query) only Previous and Next remain.
|
|
6
|
+
Renders nothing when there is one page.
|
|
7
|
+
|
|
8
|
+
One look per site (ADR-0031): the theme carries only the project's looks, generated into this file by
|
|
9
|
+
tokens/looks.mjs; the first is the default. The core theme carries all three for the kitchen sink.
|
|
10
|
+
|
|
11
|
+
@param {object} paginate - the paginate object, inside a {% paginate %} block (required)
|
|
12
|
+
@param {string} [variant] - one of the installed looks (default, bordered, grouped in core); defaults to the project's
|
|
13
|
+
@param {string} [anchor] - a fragment added to every link, e.g. 'comments'
|
|
14
|
+
|
|
15
|
+
@example
|
|
16
|
+
{% paginate collection.products by 20 %}
|
|
17
|
+
...
|
|
18
|
+
{% render 'pagination', paginate: paginate %}
|
|
19
|
+
{% endpaginate %}
|
|
20
|
+
{% enddoc %}
|
|
21
|
+
|
|
22
|
+
{%- liquid
|
|
23
|
+
# baseline:looks (generated by tokens/looks.mjs, ADR-0031: the installed looks, the project's first)
|
|
24
|
+
assign looks = 'default,bordered,grouped' | split: ','
|
|
25
|
+
# end baseline:looks
|
|
26
|
+
assign v = variant | default: looks.first
|
|
27
|
+
unless looks contains v
|
|
28
|
+
assign v = looks.first
|
|
29
|
+
endunless
|
|
30
|
+
assign hash = ''
|
|
31
|
+
if anchor != blank
|
|
32
|
+
assign hash = '#' | append: anchor
|
|
33
|
+
endif
|
|
34
|
+
-%}
|
|
35
|
+
{%- if paginate.pages > 1 -%}
|
|
36
|
+
<nav class="bl-pagination bl-pagination--{{ v }}" role="navigation" aria-label="pagination" data-slot="pagination" data-variant="{{ v }}">
|
|
37
|
+
<ul class="bl-pagination__content" data-slot="pagination-content">
|
|
38
|
+
{%- comment -%}
|
|
39
|
+
Previous and Next are always rendered (user, 2026-10-02): on the first or last page the one that leads nowhere is a
|
|
40
|
+
disabled link (the button snippet with href and disabled: no href, role="link", aria-disabled)
|
|
41
|
+
{%- endcomment -%}
|
|
42
|
+
{%- liquid
|
|
43
|
+
assign prev_url = request.path
|
|
44
|
+
assign prev_off = true
|
|
45
|
+
if paginate.previous
|
|
46
|
+
assign prev_url = paginate.previous.url | append: hash
|
|
47
|
+
assign prev_off = false
|
|
48
|
+
endif
|
|
49
|
+
assign next_url = request.path
|
|
50
|
+
assign next_off = true
|
|
51
|
+
if paginate.next
|
|
52
|
+
assign next_url = paginate.next.url | append: hash
|
|
53
|
+
assign next_off = false
|
|
54
|
+
endif
|
|
55
|
+
-%}
|
|
56
|
+
<li data-slot="pagination-item">
|
|
57
|
+
{% render 'button', label: 'Previous', href: prev_url, disabled: prev_off, variant: 'ghost', size: 'md', icon: 'chevron-left', class: 'bl-pagination__link bl-pagination__step', attrs: 'aria-label="Go to previous page" data-slot="pagination-link" data-direction="previous"' %}
|
|
58
|
+
</li>
|
|
59
|
+
{%- for part in paginate.parts -%}
|
|
60
|
+
<li data-slot="pagination-item">
|
|
61
|
+
{%- if part.is_link -%}
|
|
62
|
+
{%- assign part_url = part.url | append: hash -%}
|
|
63
|
+
{% render 'button', label: part.title, href: part_url, variant: 'ghost', size: 'md', class: 'bl-pagination__link bl-pagination__page', attrs: 'data-slot="pagination-link"' %}
|
|
64
|
+
{%- elsif part.title contains 'hellip' or part.title contains '…' -%}
|
|
65
|
+
{%- comment -%} the elided pages: Shopify's title is the ellipsis entity {%- endcomment -%}
|
|
66
|
+
<span class="bl-pagination__ellipsis" data-slot="pagination-ellipsis">
|
|
67
|
+
{%- render 'icon', name: 'more-horizontal' -%}
|
|
68
|
+
<span class="bl-pagination__sr-only">More pages</span>
|
|
69
|
+
</span>
|
|
70
|
+
{%- else -%}
|
|
71
|
+
{%- comment -%}
|
|
72
|
+
any other non-link part is the current page (comparing its title with paginate.current_page failed: one
|
|
73
|
+
is a string, the other a number, so the current page was drawn as an ellipsis)
|
|
74
|
+
{%- endcomment -%}
|
|
75
|
+
{%- assign current_url = request.path | append: '?page=' | append: paginate.current_page | append: hash -%}
|
|
76
|
+
{% render 'button', label: part.title, href: current_url, variant: 'outline', size: 'md', class: 'bl-pagination__link bl-pagination__page', attrs: 'aria-current="page" data-slot="pagination-link" data-active="true"' %}
|
|
77
|
+
{%- endif -%}
|
|
78
|
+
</li>
|
|
79
|
+
{%- endfor -%}
|
|
80
|
+
<li data-slot="pagination-item">
|
|
81
|
+
{% render 'button', label: 'Next', href: next_url, disabled: next_off, variant: 'ghost', size: 'md', icon: 'chevron-right', icon_position: 'end', class: 'bl-pagination__link bl-pagination__step', attrs: 'aria-label="Go to next page" data-slot="pagination-link" data-direction="next"' %}
|
|
82
|
+
</li>
|
|
83
|
+
</ul>
|
|
84
|
+
</nav>
|
|
85
|
+
{%- endif -%}
|
|
86
|
+
|
|
87
|
+
{% stylesheet %}
|
|
88
|
+
/* Mirrors registry/src/ui/pagination/pagination.tsx. Links are the button snippet's Buttons (button/md/* geometry).
|
|
89
|
+
What every look shares is here; each look's rules are the generated region below (ADR-0031). */
|
|
90
|
+
.bl-pagination {
|
|
91
|
+
container: pagination / inline-size;
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
width: 100%;
|
|
95
|
+
margin-inline: auto;
|
|
96
|
+
}
|
|
97
|
+
.bl-pagination__content {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
margin: 0;
|
|
101
|
+
padding: 0;
|
|
102
|
+
list-style: none;
|
|
103
|
+
}
|
|
104
|
+
/* in a pagination narrower than 32rem the page numbers and the ellipsis hide; Previous and Next keep their text
|
|
105
|
+
(user, 2026-10-02). A container query, so a narrow column behaves as a phone does. */
|
|
106
|
+
@container pagination (width < 32rem) {
|
|
107
|
+
.bl-pagination__content > li:not(:has([data-direction])) { display: none; }
|
|
108
|
+
}
|
|
109
|
+
[dir='rtl'] .bl-pagination__step .bl-icon { transform: scaleX(-1); }
|
|
110
|
+
|
|
111
|
+
.bl-pagination__ellipsis {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
border-radius: var(--bl-button-md-radius);
|
|
116
|
+
}
|
|
117
|
+
.bl-pagination__ellipsis .bl-icon {
|
|
118
|
+
width: var(--bl-button-md-icon-size);
|
|
119
|
+
height: var(--bl-button-md-icon-size);
|
|
120
|
+
}
|
|
121
|
+
.bl-pagination__sr-only {
|
|
122
|
+
position: absolute;
|
|
123
|
+
width: 1px;
|
|
124
|
+
height: 1px;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
clip: rect(0 0 0 0);
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* baseline:looks:start (generated by tokens/looks.mjs from tokens/looks/shopify/pagination-<look>.css; do not edit) */
|
|
131
|
+
/* pagination, default look (upstream's; registry/src/ui/pagination/pagination.tsx): ghost Button links, the current page outline */
|
|
132
|
+
.bl-pagination--default .bl-pagination__content { gap: var(--bl-pagination-default-gap); }
|
|
133
|
+
.bl-pagination--default .bl-pagination__page { width: var(--bl-button-md-height); padding: 0; }
|
|
134
|
+
.bl-pagination--default .bl-pagination__ellipsis {
|
|
135
|
+
width: var(--bl-button-md-height);
|
|
136
|
+
height: var(--bl-button-md-height);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* pagination, bordered look (registry/src/ui/pagination/pagination.bordered.tsx): a rule across the top; links are the
|
|
140
|
+
button snippet's md boxes in muted text with an indicator on that rule (clear, indicator-hover on hover, primary on
|
|
141
|
+
the current page, whose text is primary too); Previous and Next at the ends. The spacing is the default look's
|
|
142
|
+
(Button md and pagination/default/gap, user 2026-10-02). Three classes, to win over the button stylesheet whatever
|
|
143
|
+
order Shopify bundles them in. */
|
|
144
|
+
.bl-pagination--bordered { border-top: var(--bl-pagination-bordered-border-width) solid var(--border); }
|
|
145
|
+
.bl-pagination--bordered .bl-pagination__content {
|
|
146
|
+
justify-content: center;
|
|
147
|
+
width: 100%;
|
|
148
|
+
margin-top: calc(-1 * var(--bl-pagination-bordered-border-width));
|
|
149
|
+
gap: var(--bl-pagination-default-gap);
|
|
150
|
+
}
|
|
151
|
+
/* Previous and Next take the ends */
|
|
152
|
+
.bl-pagination--bordered li:has(> [data-direction]) { display: flex; flex: 1 1 0; }
|
|
153
|
+
.bl-pagination--bordered li:has(> [data-direction='next']) { justify-content: flex-end; }
|
|
154
|
+
.bl-pagination--bordered .bl-pagination__page { width: var(--bl-button-md-height); padding: 0; }
|
|
155
|
+
.bl-pagination--bordered .bl-pagination__link.bl-button,
|
|
156
|
+
.bl-pagination--bordered .bl-pagination__ellipsis {
|
|
157
|
+
border: 0;
|
|
158
|
+
border-top: var(--bl-pagination-bordered-indicator-width) solid transparent;
|
|
159
|
+
border-radius: 0;
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
color: var(--muted-foreground);
|
|
162
|
+
}
|
|
163
|
+
.bl-pagination--bordered .bl-pagination__ellipsis {
|
|
164
|
+
width: var(--bl-button-md-height);
|
|
165
|
+
height: var(--bl-button-md-height);
|
|
166
|
+
}
|
|
167
|
+
.bl-pagination--bordered .bl-pagination__link.bl-button:hover {
|
|
168
|
+
border-top-color: var(--bl-pagination-bordered-indicator-hover);
|
|
169
|
+
background-color: transparent;
|
|
170
|
+
color: var(--foreground);
|
|
171
|
+
}
|
|
172
|
+
.bl-pagination--bordered .bl-pagination__link.bl-button[aria-current='page'] {
|
|
173
|
+
border-top-color: var(--primary);
|
|
174
|
+
color: var(--primary);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* pagination, grouped look (registry/src/ui/pagination/pagination.grouped.tsx): one joined outline with Button Group's
|
|
178
|
+
seams; the current page filled with accent */
|
|
179
|
+
.bl-pagination--grouped .bl-pagination__content { gap: 0; }
|
|
180
|
+
.bl-pagination--grouped .bl-pagination__page { width: var(--bl-button-md-height); padding: 0; }
|
|
181
|
+
.bl-pagination--grouped .bl-pagination__ellipsis {
|
|
182
|
+
width: var(--bl-button-md-height);
|
|
183
|
+
height: var(--bl-button-md-height);
|
|
184
|
+
}
|
|
185
|
+
.bl-pagination--grouped :is(.bl-pagination__link, .bl-pagination__ellipsis) {
|
|
186
|
+
border: var(--bl-pagination-bordered-border-width) solid var(--border);
|
|
187
|
+
border-radius: 0;
|
|
188
|
+
}
|
|
189
|
+
.bl-pagination--grouped li:not(:first-child) > :is(.bl-pagination__link, .bl-pagination__ellipsis) { border-inline-start-width: 0; }
|
|
190
|
+
.bl-pagination--grouped li:first-child > * {
|
|
191
|
+
border-start-start-radius: var(--bl-button-md-radius);
|
|
192
|
+
border-end-start-radius: var(--bl-button-md-radius);
|
|
193
|
+
}
|
|
194
|
+
.bl-pagination--grouped li:last-child > * {
|
|
195
|
+
border-start-end-radius: var(--bl-button-md-radius);
|
|
196
|
+
border-end-end-radius: var(--bl-button-md-radius);
|
|
197
|
+
}
|
|
198
|
+
.bl-pagination--grouped .bl-pagination__link[aria-current='page'] {
|
|
199
|
+
background-color: var(--accent);
|
|
200
|
+
color: var(--accent-foreground);
|
|
201
|
+
}
|
|
202
|
+
/* disabled keeps its outline, which is the group's edge: muted text instead of the 50 % opacity */
|
|
203
|
+
.bl-pagination--grouped .bl-pagination__link[aria-disabled='true'] {
|
|
204
|
+
opacity: 1;
|
|
205
|
+
color: var(--muted-foreground);
|
|
206
|
+
}
|
|
207
|
+
/* baseline:looks:end */
|
|
208
|
+
{% endstylesheet %}
|