efficient-web-builder 44.0.1 → 46.0.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/CHANGELOG.md +12 -2
- package/README.md +8 -0
- package/dist/editor/components/ApplyCornersToSiblings.d.ts +1 -3
- package/dist/editor/components/ApplyCornersToSiblings.js +1 -1
- package/dist/editor/components/BlogPostSource.js +1 -1
- package/dist/editor/components/CanvasPartsBridge.js +1 -1
- package/dist/editor/components/CardShadowField.js +1 -1
- package/dist/editor/components/ChatSettingsPanel.js +1 -1
- package/dist/editor/components/FieldGlyph.js +1 -1
- package/dist/editor/components/LocationsGroupedField.js +1 -1
- package/dist/editor/components/PartInkControl.js +1 -1
- package/dist/editor/components/PartSettingsPanel.d.ts +0 -2
- package/dist/editor/components/PartSettingsPanel.js +1 -1
- package/dist/editor/components/PartTextBox.d.ts +6 -3
- package/dist/editor/components/PartTextBox.js +1 -1
- package/dist/editor/components/PreviewChatContext.d.ts +1 -2
- package/dist/editor/components/PreviewChatContext.js +1 -1
- package/dist/editor/components/PreviewPartAnchors.js +1 -1
- package/dist/editor/components/SectionIcon.js +1 -1
- package/dist/editor/components/SectionThemePicker.js +1 -1
- package/dist/editor/components/SectionThumbnail.js +1 -1
- package/dist/editor/components/SectionWidthRows.d.ts +6 -13
- package/dist/editor/components/SectionWidthRows.js +1 -1
- package/dist/editor/components/SourceStatus.d.ts +2 -1
- package/dist/editor/components/SourceStatus.js +1 -1
- package/dist/editor/components/StorefrontEditor.js +1 -1
- package/dist/editor/components/ThemeCard.js +1 -1
- package/dist/editor/components/ThemeColourField.js +1 -1
- package/dist/editor/components/ThemeField.js +1 -1
- package/dist/editor/components/TickerSettingsPanel.js +1 -1
- package/dist/editor/components/WebsiteScreenParts.js +1 -1
- package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
- package/dist/editor/components/storefront-editor.css +90 -359
- package/dist/editor/components/useHostDocumentBridge.js +1 -1
- package/dist/editor/components/useLocationsTree.js +1 -1
- package/dist/editor/components/useSectionToBoxPass.d.ts +8 -1
- package/dist/editor/components/useSectionToBoxPass.js +1 -1
- package/dist/editor/components/useSocialSettings.d.ts +2 -2
- package/dist/editor/lib/animation/AnimationDurationRow.d.ts +3 -0
- package/dist/editor/lib/animation/AnimationDurationRow.js +1 -0
- package/dist/editor/lib/animation/entrance-fields.d.ts +4 -0
- package/dist/editor/lib/animation/entrance-fields.js +1 -0
- package/dist/editor/lib/animation/fields.d.ts +2 -0
- package/dist/editor/lib/animation/fields.js +1 -0
- package/dist/editor/lib/animation/loop-fields.d.ts +2 -0
- package/dist/editor/lib/animation/loop-fields.js +1 -0
- package/dist/editor/lib/document/ColourControl.js +1 -1
- package/dist/editor/lib/document/add-palette.js +1 -1
- package/dist/editor/lib/document/block-offer.js +1 -1
- package/dist/editor/lib/document/block-source-fields.d.ts +1 -1
- package/dist/editor/lib/document/block-source-fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Breadcrumb/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/CategoryBar/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/DocBody/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/DocMasthead/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/DocTabs/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Eyebrow/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/FeaturedCover/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Grid/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Heading/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSingle/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Integrations/fields.js +2 -2
- package/dist/editor/lib/document/blocks/general/IntroBleed/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/KeyFeatures/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LocationMap/fields.d.ts +10 -0
- package/dist/editor/lib/document/blocks/general/LocationMap/fields.js +1 -0
- package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Logos/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/LongRead/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Manifesto/fields.js +2 -2
- package/dist/editor/lib/document/blocks/general/Masthead/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
- package/dist/editor/lib/document/blocks/general/OrderSummary/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ParagraphsA/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/PaymentBadges/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Prose/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Series/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/SpecStrip/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Split/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Stats/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/StatsParagraph/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Testimonials/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Ticker/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/Timeline/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/TimelineTrack/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/TitleWithButtons/fields.js +1 -1
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/blocks/general/index.js +1 -1
- package/dist/editor/lib/document/blocks/shared-fields.d.ts +2 -4
- package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
- package/dist/editor/lib/document/box-fields.d.ts +36 -0
- package/dist/editor/lib/document/box-fields.js +1 -0
- package/dist/editor/lib/document/box-gutter-field.d.ts +1 -0
- package/dist/editor/lib/document/box-gutter-field.js +1 -0
- package/dist/editor/lib/document/canvas-typing.js +1 -1
- package/dist/editor/lib/document/card-row-fields.d.ts +1 -1
- package/dist/editor/lib/document/card-row-fields.js +1 -1
- package/dist/editor/lib/document/consent-words-field.d.ts +2 -3
- package/dist/editor/lib/document/consent-words-field.js +1 -1
- package/dist/editor/lib/document/controls.d.ts +34 -94
- package/dist/editor/lib/document/controls.js +1 -1
- package/dist/editor/lib/document/enclosing-section.d.ts +5 -1
- package/dist/editor/lib/document/enclosing-section.js +1 -1
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/general-registry.js +1 -1
- package/dist/editor/lib/document/overrides.js +1 -1
- package/dist/editor/lib/document/page-root-fields.d.ts +1 -1
- package/dist/editor/lib/document/page-root-fields.js +1 -1
- package/dist/editor/lib/document/page-root.d.ts +2 -7
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/editor/lib/document/part-anchors.d.ts +0 -1
- package/dist/editor/lib/document/part-anchors.js +1 -1
- package/dist/editor/lib/document/part-panel-rows.d.ts +75 -0
- package/dist/editor/lib/document/part-panel-rows.js +1 -0
- package/dist/editor/lib/document/passes/inspector.js +1 -1
- package/dist/editor/lib/document/separator-field.d.ts +10 -0
- package/dist/editor/lib/document/separator-field.js +1 -0
- package/dist/editor/lib/document/shell-glyph.d.ts +2 -0
- package/dist/editor/lib/document/shell-glyph.js +1 -0
- package/dist/{format → editor}/lib/host-document-bridge.d.ts +1 -3
- package/dist/editor/lib/host-document-bridge.js +1 -0
- package/dist/editor/lib/pinned-chrome-doc.js +1 -1
- package/dist/editor/lib/sections/city-presets.d.ts +4 -0
- package/dist/editor/lib/sections/city-presets.js +1 -0
- package/dist/editor/lib/sections/new-section-node.js +1 -1
- package/dist/editor/lib/sections/section-dry-run.d.ts +13 -2
- package/dist/editor/lib/sections/section-dry-run.js +2 -2
- package/dist/editor/lib/sections/text-layouts.d.ts +6 -0
- package/dist/editor/lib/sections/text-layouts.js +1 -0
- package/dist/editor/lib/source-rules/part-slider-fills-row.d.ts +1 -0
- package/dist/editor/lib/source-rules/part-slider-fills-row.js +5 -5
- package/dist/format/lib/animation/index.d.ts +1 -0
- package/dist/format/lib/animation/index.js +1 -0
- package/dist/format/lib/animation/loop.d.ts +29 -0
- package/dist/format/lib/animation/loop.js +1 -0
- package/dist/format/lib/content/block-align.d.ts +2 -0
- package/dist/format/lib/content/block-align.js +1 -1
- package/dist/format/lib/content/block-size.d.ts +59 -0
- package/dist/format/lib/content/block-size.js +1 -0
- package/dist/format/lib/content/box-background.js +1 -1
- package/dist/format/lib/content/box-layout.d.ts +16 -37
- package/dist/format/lib/content/box-layout.js +1 -1
- package/dist/format/lib/content/box-link.d.ts +13 -0
- package/dist/format/lib/content/box-link.js +13 -0
- package/dist/format/lib/content/box-separator.d.ts +10 -0
- package/dist/format/lib/content/box-separator.js +1 -0
- package/dist/format/lib/content/box-shape.d.ts +10 -0
- package/dist/format/lib/content/box-shape.js +1 -0
- package/dist/format/lib/content/button-icon.d.ts +1 -0
- package/dist/format/lib/content/button-icon.js +1 -1
- package/dist/format/lib/content/card-corners.d.ts +0 -3
- package/dist/format/lib/content/card-corners.js +1 -1
- package/dist/format/lib/content/card-template.d.ts +2 -0
- package/dist/format/lib/content/card-template.js +1 -1
- package/dist/format/lib/content/cart-drawer.d.ts +7 -0
- package/dist/format/lib/content/cart-drawer.js +1 -1
- package/dist/format/lib/content/chat-launcher.js +1 -1
- package/dist/format/lib/content/container-gap.d.ts +9 -1
- package/dist/format/lib/content/container-gap.js +1 -1
- package/dist/format/lib/content/gallery-card-layout.js +1 -1
- package/dist/format/lib/content/gallery-layout.d.ts +1 -0
- package/dist/format/lib/content/gallery-layout.js +1 -1
- package/dist/format/lib/content/page-background.js +1 -1
- package/dist/format/lib/content/post-date.d.ts +1 -0
- package/dist/format/lib/content/post-date.js +1 -0
- package/dist/format/lib/content/scrim.d.ts +1 -0
- package/dist/format/lib/content/scrim.js +1 -0
- package/dist/format/lib/content/section-min-height.d.ts +4 -0
- package/dist/format/lib/content/section-min-height.js +1 -1
- package/dist/format/lib/content/section-width.d.ts +2 -18
- package/dist/format/lib/content/section-width.js +1 -1
- package/dist/format/lib/content/site-gutter.d.ts +11 -1
- package/dist/format/lib/content/site-gutter.js +1 -1
- package/dist/format/lib/content/tint.d.ts +1 -0
- package/dist/format/lib/content/tint.js +1 -0
- package/dist/format/lib/document/blocks/block-types.d.ts +0 -1
- package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/HeroSlide/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/IntroBleed/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/LocationMap/meta.d.ts +2 -0
- package/dist/format/lib/document/blocks/general/LocationMap/meta.js +1 -0
- package/dist/format/lib/document/blocks/general/SpecStrip/meta.d.ts +5 -0
- package/dist/format/lib/document/blocks/general/SpecStrip/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Ticker/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
- package/dist/format/lib/document/blocks/general/metas.js +1 -1
- package/dist/format/lib/document/blocks/general/text-part-shapes.json +30 -0
- package/dist/format/lib/document/box-footer.d.ts +1 -0
- package/dist/format/lib/document/box-footer.js +1 -1
- package/dist/format/lib/document/cap-hero-groups.js +1 -1
- package/dist/format/lib/document/container-blocks.js +1 -1
- package/dist/format/lib/document/editor-site-widths.d.ts +2 -0
- package/dist/format/lib/document/editor-site-widths.js +1 -0
- package/dist/format/lib/document/general-order.d.ts +1 -1
- package/dist/format/lib/document/general-order.js +1 -1
- package/dist/format/lib/document/part-inks.js +1 -1
- package/dist/format/lib/document/passes/document-position.js +1 -1
- package/dist/format/lib/document/passes/settings-groups.js +1 -1
- package/dist/format/lib/document/passes/types.d.ts +10 -5
- package/dist/format/lib/document/renamed-props.js +1 -1
- package/dist/format/lib/document/section-catalog.js +2 -2
- package/dist/format/lib/editor-words-catalogue.d.ts +36 -32
- package/dist/format/lib/editor-words-catalogue.js +6 -6
- package/dist/format/lib/fit-words.js +77 -18
- package/dist/format/lib/fonts.d.ts +1 -0
- package/dist/format/lib/fonts.js +1 -1
- package/dist/format/lib/hero-group-placement.js +1 -1
- package/dist/format/lib/hero-texture.d.ts +1 -1
- package/dist/format/lib/hero-texture.js +1 -1
- package/dist/format/lib/locations-grid.d.ts +1 -0
- package/dist/format/lib/locations-grid.js +1 -1
- package/dist/format/lib/map-styles.d.ts +0 -1
- package/dist/format/lib/map-styles.js +1 -1
- package/dist/format/lib/popup/look.js +1 -1
- package/dist/format/lib/popup/text-kinds.d.ts +0 -1
- package/dist/format/lib/popup/text-kinds.js +1 -1
- package/dist/format/lib/sections/hero-overlay.d.ts +1 -1
- package/dist/format/lib/sections/hero-overlay.js +1 -1
- package/dist/format/lib/sections/section-head-placement.d.ts +0 -4
- package/dist/format/lib/sections/section-head-placement.js +1 -1
- package/dist/format/lib/sections/section-presets.js +1 -1
- package/dist/format/lib/sections/strip-shape.d.ts +16 -0
- package/dist/format/lib/sections/strip-shape.js +1 -0
- package/dist/format/lib/sections/timeline-year-shape.d.ts +4 -0
- package/dist/format/lib/sections/timeline-year-shape.js +1 -0
- package/dist/format/lib/source-rules/box-fields-from-easel.d.ts +4 -0
- package/dist/format/lib/source-rules/box-fields-from-easel.js +8 -0
- package/dist/format/lib/source-rules/editor-chrome-note.js +1 -1
- package/dist/format/lib/source-rules/editor-words.js +2 -2
- package/dist/format/lib/source-rules/no-glyph-rows.d.ts +0 -4
- package/dist/format/lib/source-rules/no-glyph-rows.js +4 -4
- package/dist/format/lib/source-rules/one-alignment-row.d.ts +9 -0
- package/dist/format/lib/source-rules/one-alignment-row.js +7 -0
- package/dist/format/lib/source-rules/one-loop-module.d.ts +7 -0
- package/dist/format/lib/source-rules/one-loop-module.js +6 -0
- package/dist/format/lib/source-rules/one-node-list.d.ts +2 -0
- package/dist/format/lib/source-rules/one-node-list.js +1 -0
- package/dist/format/lib/source-rules/one-page-theme-reader.d.ts +6 -0
- package/dist/format/lib/source-rules/one-page-theme-reader.js +6 -0
- package/dist/format/lib/source-rules/part-style-naming.js +1 -1
- package/dist/format/lib/source-rules/shell-width-token-not-colour.d.ts +5 -0
- package/dist/format/lib/source-rules/shell-width-token-not-colour.js +2 -0
- package/dist/format/lib/source-rules/site-square-by-default.js +3 -3
- package/dist/format/lib/source-rules/support/panel-select-cascade.js +2 -2
- package/dist/format/lib/theme.d.ts +6 -0
- package/dist/format/lib/theme.js +4 -4
- package/dist/render/components/Banner.js +1 -1
- package/dist/render/components/ButtonBlock.d.ts +2 -0
- package/dist/render/components/ButtonBlock.js +1 -1
- package/dist/render/components/CardRowContext.d.ts +4 -4
- package/dist/render/components/CardRowContext.js +1 -1
- package/dist/render/components/Cards.d.ts +1 -0
- package/dist/render/components/Cards.js +1 -1
- package/dist/render/components/ContactLocations.js +2 -14
- package/dist/render/components/Eyebrow.d.ts +2 -1
- package/dist/render/components/Eyebrow.js +1 -1
- package/dist/render/components/FeaturedCover.js +1 -1
- package/dist/render/components/Flex.d.ts +19 -1
- package/dist/render/components/Flex.js +1 -1
- package/dist/render/components/Grid.js +1 -1
- package/dist/render/components/Heading.d.ts +3 -4
- package/dist/render/components/Heading.js +1 -1
- package/dist/render/components/HeroSection.js +1 -1
- package/dist/render/components/HeroSingle.js +1 -1
- package/dist/render/components/HeroSlide.js +1 -1
- package/dist/render/components/HeroVideoPlay.js +1 -1
- package/dist/render/components/ImageBlock.d.ts +1 -2
- package/dist/render/components/ImageBlock.js +1 -1
- package/dist/render/components/InBoxContext.d.ts +2 -0
- package/dist/render/components/InBoxContext.js +1 -0
- package/dist/render/components/KeyFeatures.js +1 -1
- package/dist/render/components/LocationMap.d.ts +23 -0
- package/dist/render/components/LocationMap.js +1 -0
- package/dist/render/components/Logo.js +1 -1
- package/dist/render/components/LogoBlock.d.ts +1 -0
- package/dist/render/components/LogoBlock.js +1 -1
- package/dist/render/components/LongRead.js +1 -1
- package/dist/render/components/Manifesto.d.ts +2 -1
- package/dist/render/components/Manifesto.js +1 -1
- package/dist/render/components/PreviewHeaderContext.d.ts +12 -5
- package/dist/render/components/PreviewHeaderContext.js +1 -1
- package/dist/render/components/PreviewLocationPartContext.d.ts +1 -1
- package/dist/render/components/PreviewLocationPartContext.js +1 -1
- package/dist/render/components/ProcessSteps.js +1 -1
- package/dist/render/components/SectionAnimation.d.ts +16 -3
- package/dist/render/components/SectionAnimation.js +1 -1
- package/dist/render/components/SiteGutterFrame.d.ts +7 -1
- package/dist/render/components/SiteGutterFrame.js +1 -1
- package/dist/render/components/SiteMap.js +1 -1
- package/dist/render/components/SpecStrip.d.ts +2 -4
- package/dist/render/components/SpecStrip.js +1 -1
- package/dist/render/components/Split.d.ts +3 -1
- package/dist/render/components/Split.js +1 -1
- package/dist/render/components/Text.d.ts +5 -2
- package/dist/render/components/Text.js +1 -1
- package/dist/render/components/Ticker.d.ts +5 -4
- package/dist/render/components/Ticker.js +1 -1
- package/dist/render/components/TickerSection.d.ts +5 -4
- package/dist/render/components/TickerSection.js +1 -1
- package/dist/render/components/Timeline.js +1 -1
- package/dist/render/components/TimelineRail.d.ts +55 -0
- package/dist/render/components/TimelineRail.js +1 -0
- package/dist/render/components/TimelineTrack.js +1 -1
- package/dist/render/components/TitleWithButtons.d.ts +2 -1
- package/dist/render/components/TitleWithButtons.js +1 -1
- package/dist/render/components/goldPhrases.js +1 -1
- package/dist/render/lib/animation/LoopTrack.d.ts +14 -0
- package/dist/render/lib/animation/LoopTrack.js +1 -0
- package/dist/render/lib/animation/entrance.d.ts +18 -0
- package/dist/render/lib/animation/entrance.js +1 -0
- package/dist/render/lib/document/blocks/general/ButtonBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Heading/render.js +1 -1
- package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/LocationMap/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/LocationMap/render.js +1 -0
- package/dist/render/lib/document/blocks/general/LogoBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
- package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
- package/dist/render/lib/document/blocks/general/Ticker/render.js +1 -1
- package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
- package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
- package/dist/render/lib/document/blocks/general/renders.js +1 -1
- package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +9 -0
- package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +9 -1
- package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +4 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.d.ts +2 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +3 -0
- package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
- package/dist/render/lib/document/page-frame.d.ts +3 -21
- package/dist/render/lib/document/page-frame.js +1 -1
- package/dist/render/lib/document/page-render.js +1 -1
- package/dist/render/lib/document/part-styles.d.ts +15 -13
- package/dist/render/lib/document/part-styles.js +2 -2
- package/dist/render/lib/document/passes/block-size.d.ts +3 -0
- package/dist/render/lib/document/passes/block-size.js +1 -0
- package/dist/render/lib/document/passes/cell-width.d.ts +1 -0
- package/dist/render/lib/document/passes/cell-width.js +1 -1
- package/dist/render/lib/document/passes/clickable-parts.js +1 -1
- package/dist/render/lib/document/passes/corners.js +1 -1
- package/dist/render/lib/document/passes/index.js +1 -1
- package/dist/render/lib/document/passes/section-anchor.d.ts +1 -0
- package/dist/render/lib/document/passes/section-anchor.js +1 -1
- package/dist/render/lib/document/passes/section-animation.d.ts +1 -0
- package/dist/render/lib/document/passes/section-animation.js +1 -1
- package/dist/render/lib/document/passes/section-padding.js +1 -1
- package/dist/render/lib/document/passes/section-width.d.ts +1 -4
- package/dist/render/lib/document/passes/section-width.js +1 -1
- package/dist/render/lib/document/text-parts.d.ts +4 -0
- package/dist/render/lib/document/text-parts.js +1 -1
- package/dist/render/lib/sections/section-to-box.d.ts +30 -7
- package/dist/render/lib/sections/section-to-box.js +1 -1
- package/dist/render/lib/text-styles/site-text-styles.js +2 -2
- package/package.json +5 -5
- package/dist/editor/components/PartResetDot.d.ts +0 -5
- package/dist/editor/components/PartResetDot.js +0 -1
- package/dist/editor/lib/document/section-width-fields.d.ts +0 -2
- package/dist/editor/lib/document/section-width-fields.js +0 -1
- package/dist/format/lib/content/image-width.d.ts +0 -9
- package/dist/format/lib/content/image-width.js +0 -1
- package/dist/format/lib/content/section-animation.d.ts +0 -13
- package/dist/format/lib/content/section-animation.js +0 -1
- package/dist/format/lib/host-document-bridge.js +0 -1
- package/dist/format/lib/sections/ticker-scroll.d.ts +0 -11
- package/dist/format/lib/sections/ticker-scroll.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as
|
|
1
|
+
import{jsx as a,jsxs as c}from"react/jsx-runtime";import{DEFAULT_TICKER_SEPARATOR as D,DEFAULT_TICKER_SIZE as N,SEPARATOR_GLYPH as R,parseTickerSeparator as w,parseTickerSize as b,separatorScaleClass as y,tickerTypeClass as I}from"../../format/lib/sections/ticker-style.js";import{DEFAULT_LOOP_DELAY as P,DEFAULT_LOOP_DIRECTION as j,DEFAULT_LOOP_SECONDS as k,isVerticalLoop as u,loopAnimation as v,parseLoopDirection as F}from"../../format/lib/animation/index.js";import{renderGold as U}from"./goldPhrases.js";const $={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function K({items:i,separator:l=D,size:x=N,seconds:m=k,delay:d=P,scroll:f=j,backdrop:g="themed-band",className:h}){const t=b(x),n=F(f),o=w(l),T=`text-accent ${y(t,o)}`.trim(),p=R[o],_=p===""?a("span",{}):a("span",{className:T,children:p}),s=u(n),E=s?"inline-flex flex-col items-center gap-[60px] pb-[60px] max-[800px]:gap-8 max-[800px]:pb-8":"inline-flex items-center gap-[60px] pr-[60px] max-[800px]:gap-8 max-[800px]:pr-8",L=s?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",r=A=>a("span",{className:E,children:i.map((e,C)=>{const O=typeof e=="string"?e:e.text,S=typeof e=="object"&&e.gold;return c("span",{className:L,children:[a("span",{className:S?"text-accent":void 0,children:U(O)}),_]},C)})},A);return a("div",{className:`overflow-hidden ${h??""}`,children:c("div",{className:`flex ${s?"flex-col ":""}whitespace-nowrap ${I(t)} ${$[g]}`,style:{animation:v(n,m,d)},children:[r("a"),r("b")]})})}export{K as default};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type { TickerSeparator, TickerSize } from "../../format/lib/sections/ticker-style.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { LoopDirection } from "../../format/lib/animation/index.js";
|
|
3
3
|
export type TickerSectionItem = {
|
|
4
4
|
text?: string;
|
|
5
5
|
};
|
|
6
6
|
interface Props {
|
|
7
7
|
items?: TickerSectionItem[];
|
|
8
|
-
|
|
8
|
+
seconds?: number;
|
|
9
|
+
delay?: number;
|
|
9
10
|
tone?: "scrim" | "plain";
|
|
10
11
|
borders?: boolean;
|
|
11
12
|
size?: TickerSize;
|
|
12
13
|
separator?: TickerSeparator;
|
|
13
|
-
scroll?:
|
|
14
|
+
scroll?: LoopDirection;
|
|
14
15
|
join?: string;
|
|
15
16
|
editing?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export default function TickerSection({ items,
|
|
18
|
+
export default function TickerSection({ items, seconds, delay, tone, borders, size, separator, scroll, join, editing, }: Props): import("react").JSX.Element | null;
|
|
18
19
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as r}from"react/jsx-runtime";import
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";import x from"./Ticker.js";import{TICKER_JOIN_BOX_CLASS as h,tickerJoinSide as k,tickerJoinStripClass as y}from"../../format/lib/sections/ticker-join.js";import{say as S}from"../../format/lib/editor-words.js";const v=()=>S("item");function _({items:s,seconds:l,delay:a,tone:c="scrim",borders:d=!0,size:m,separator:p,scroll:f,join:u,editing:b}){const t=(s??[]).map(n=>n?.text?.trim()?n.text:b?v():"").filter(Boolean);if(t.length===0)return null;const i=c!=="plain",e=k(u),o=r("div",{className:[e?`absolute inset-x-0 ${y(e)}`:"relative z-[2]","py-3.5 max-[800px]:py-3",i?"bg-bg":"",d?"border-y border-line":""].filter(Boolean).join(" "),children:r(x,{items:t,seconds:l,delay:a,size:m,separator:p,scroll:f,backdrop:i?"themed-band":"themed-section"})});return e?r("div",{className:h,children:o}):o}export{_ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as N,jsxs as
|
|
1
|
+
import{jsx as e,Fragment as N,jsxs as i}from"react/jsx-runtime";import{SiteLink as j}from"../lib/site-runtime.js";import{stripMarkup as T}from"../../format/lib/markup.js";import _ from"./Placeholder.js";import C from"./SectionEyebrow.js";import{renderGold as m,renderHeadline as w,splitParagraphs as E}from"./goldPhrases.js";import{CentreRailDot as I,CentreRailLine as U,railSideIsLeft as F,SPINE_LINE_CLASS as P,SpineDot as D}from"./TimelineRail.js";import{scrim as H}from"../../format/lib/content/scrim.js";const n={bodyUpTo800:"max-[800px]:text-[length:var(--size-body,16px)]",headingSmallUpTo800:"max-[800px]:text-[length:var(--size-headingSmall,20px)]",bodySmall:"text-[length:var(--size-body,14px)]",bodyLarge:"text-[length:var(--size-body,17px)]",headingSmall:"text-[length:var(--size-headingSmall,24px)]",labelSmall:"text-[length:var(--size-label,11px)]",labelLarge:"text-[length:var(--size-label,13px)]"};function y({eyebrow:a,title:t,intro:r,center:s=!1}){return i(N,{children:[a&&e(C,{text:a,size:12}),t&&e("h2",{className:"font-heading2 text-[length:min(var(--size-headingMedium,clamp(40px,5vw,76px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[0.94] tracking-[-0.03em] text-fg",children:w(t)}),r&&e("p",{className:[`font-display ${n.bodySmall} leading-[1.6] text-fg-dim`,s?"max-w-[520px]":"max-w-[360px]"].join(" "),children:m(r,!0)})]})}function S({cta:a,className:t=""}){return a?.text?i(j,{href:a.href,className:["group inline-flex items-center gap-3.5 border border-line px-5 py-4",`font-mono ${n.labelLarge} uppercase tracking-[0.3em] text-fg`,"transition-colors hover:border-accent hover:text-accent",t].join(" "),children:[m(a.text),e("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]}):null}function z({src:a,caption:t,meta:r,aspectClass:s,editing:x,sizes:c="100vw",className:o=""}){return!a&&!x?null:i("figure",{className:["relative overflow-hidden border border-line bg-surface",s,o].join(" "),children:[e(_,{label:t||"Image",src:a,alt:T(t??""),sizes:c}),e("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:`linear-gradient(180deg, transparent 55%, ${H(.75)} 100%)`}}),(t||r)&&i("figcaption",{className:`absolute inset-x-0 bottom-0 z-[1] flex items-center justify-between gap-3 px-4 py-3 font-mono ${n.labelSmall} uppercase tracking-[0.24em] text-overlay-fg/85`,children:[e("span",{children:t?m(t):""}),r&&e("span",{className:"text-accent",children:m(r)})]})]})}function g({entry:a}){const t=E(a.body??"");return i(N,{children:[a.title&&e("h3",{className:`mb-3.5 font-heading3 ${n.headingSmall} font-medium uppercase tracking-[-0.02em] text-fg ${n.headingSmallUpTo800}`,children:w(a.title)}),t.length>0&&e("div",{className:`space-y-3.5 font-display ${n.bodyLarge} leading-[1.6] ${n.bodyUpTo800}`,children:t.map((r,s)=>e("p",{className:s===0?"text-fg":"text-fg-dim",children:m(r,!0)},s))})]})}function R({layout:a="split",eyebrow:t,title:r,intro:s,imageSrc:x,imageCaption:c,imageMeta:o,cta:h,entries:k,padTop:f,padBottom:u,editing:b}={}){const L=typeof f=="number"?f:120,$=typeof u=="number"?u:120,d=(k??[]).filter(l=>(l.date??"").trim()||(l.title??"").trim()||(l.body??"").trim());return e("section",{className:"relative z-[2] bg-bg",children:e("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] border-b border-line px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]",style:{paddingTop:L,paddingBottom:$},children:a==="split"?i("div",{className:"grid grid-cols-[1fr_1.4fr] gap-20 max-[1100px]:grid-cols-1 max-[1100px]:gap-12",children:[i("aside",{className:"sticky top-[120px] flex flex-col gap-6 self-start max-[1100px]:static",children:[e(y,{eyebrow:t,title:r,intro:s}),e(z,{src:x,caption:c,meta:o,aspectClass:"mt-1 aspect-[4/5]",sizes:"(max-width: 1100px) 100vw, 420px",editing:b}),e(S,{cta:h,className:"mt-2 self-start"})]}),e("ol",{className:"flex flex-col gap-12",children:d.map((l,p)=>i("li",{className:"grid grid-cols-[80px_1fr] items-start gap-6 max-[700px]:grid-cols-1 max-[700px]:gap-2",children:[e("span",{className:`pt-1.5 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:l.date?m(l.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:l})})]},p))})]}):i("div",{children:[i("header",{className:"mx-auto flex max-w-[760px] flex-col items-center gap-6 text-center",children:[e(y,{eyebrow:t,title:r,intro:s,center:!0}),e(S,{cta:h})]}),e(z,{src:x,caption:c,meta:o,aspectClass:"mx-auto mt-12 aspect-[16/9] w-full max-w-[900px]",sizes:"(max-width: 900px) 100vw, 900px",editing:b}),a==="spine"?e("ol",{className:"relative mx-auto mt-16 max-w-[760px]",children:d.map((l,p)=>i("li",{className:`relative ${P} pb-12 pl-10 last:pb-0 max-[700px]:pl-8`,children:[e(D,{}),e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:l.date?m(l.date):""}),e("div",{className:"max-w-[640px]",children:e(g,{entry:l})})]},p))}):i("ol",{className:"relative mx-auto mt-16 max-w-[1000px]",children:[e(U,{}),d.map((l,p)=>{const v=F(p);return i("li",{className:"relative mb-14 pl-8 last:mb-0 min-[801px]:grid min-[801px]:grid-cols-2 min-[801px]:gap-16 min-[801px]:pl-0",children:[e(I,{}),i("div",{className:v?"min-[801px]:col-start-1 min-[801px]:pr-8 min-[801px]:text-right":"min-[801px]:col-start-2 min-[801px]:pl-8",children:[e("div",{className:`mb-2 font-mono ${n.labelLarge} tracking-[0.24em] text-accent`,children:l.date?m(l.date):""}),e("div",{className:["max-w-[520px] max-[800px]:max-w-none",v?"min-[801px]:ml-auto":""].join(" "),children:e(g,{entry:l})})]})]},p)})]})]})})})}export{R as default};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
declare const TIERS: {
|
|
3
|
+
readonly section: {
|
|
4
|
+
readonly hideStacked: "max-[1100px]:hidden";
|
|
5
|
+
readonly stackedPast: "max-[1100px]:border-accent border-line";
|
|
6
|
+
readonly firstOnDesktop: "min-[1101px]:border-l-0";
|
|
7
|
+
readonly dotAt: (first: boolean) => string;
|
|
8
|
+
};
|
|
9
|
+
readonly row: {
|
|
10
|
+
readonly hideStacked: "max-[800px]:hidden";
|
|
11
|
+
readonly stackedPast: "max-[800px]:border-accent border-line";
|
|
12
|
+
readonly firstOnDesktop: "";
|
|
13
|
+
readonly dotAt: () => string;
|
|
14
|
+
};
|
|
15
|
+
readonly stack: {
|
|
16
|
+
readonly hideStacked: "hidden";
|
|
17
|
+
readonly stackedPast: "border-accent";
|
|
18
|
+
readonly firstOnDesktop: "";
|
|
19
|
+
readonly dotAt: () => string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type RailTier = keyof typeof TIERS;
|
|
23
|
+
export interface RailStop {
|
|
24
|
+
future?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function railPastShare(stops: readonly RailStop[]): number;
|
|
27
|
+
export declare function TrackRailLine({ pct, tier }: {
|
|
28
|
+
pct?: number;
|
|
29
|
+
tier?: RailTier;
|
|
30
|
+
}): import("react").JSX.Element;
|
|
31
|
+
export declare function trackStopRailClass(future: boolean, first: boolean, tier?: RailTier): string;
|
|
32
|
+
export declare function TrackRailDot({ future, first, tier }: {
|
|
33
|
+
future: boolean;
|
|
34
|
+
first: boolean;
|
|
35
|
+
tier?: RailTier;
|
|
36
|
+
}): import("react").JSX.Element;
|
|
37
|
+
export declare function railYearInkClass(future: boolean): string;
|
|
38
|
+
export declare const SPINE_LINE_CLASS = "border-l border-line";
|
|
39
|
+
export declare function SpineDot(): import("react").JSX.Element;
|
|
40
|
+
export declare function CentreRailLine(): import("react").JSX.Element;
|
|
41
|
+
export declare function CentreRailDot(): import("react").JSX.Element;
|
|
42
|
+
export declare function railSideIsLeft(index: number): boolean;
|
|
43
|
+
export declare function useTimelineRail(): "row" | "stack" | null;
|
|
44
|
+
export declare const RAIL_STOPS_CLASS = "tl-stops";
|
|
45
|
+
export declare function BoxRail({ row, stops, children }: {
|
|
46
|
+
row: boolean;
|
|
47
|
+
stops: number;
|
|
48
|
+
children: ReactNode;
|
|
49
|
+
}): import("react").JSX.Element;
|
|
50
|
+
export declare function BoxRailStop({ on, future, children }: {
|
|
51
|
+
on: "row" | "stack";
|
|
52
|
+
future: boolean;
|
|
53
|
+
children: ReactNode;
|
|
54
|
+
}): import("react").JSX.Element;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as o,Fragment as b,jsxs as a}from"react/jsx-runtime";import{createContext as S,useContext as $}from"react";const i={section:{hideStacked:"max-[1100px]:hidden",stackedPast:"max-[1100px]:border-accent border-line",firstOnDesktop:"min-[1101px]:border-l-0",dotAt:t=>`${t?"-top-[66px] left-[-1px]":"-top-[66px] left-[-5px]"} max-[1100px]:left-[-5px] max-[1100px]:top-7`},row:{hideStacked:"max-[800px]:hidden",stackedPast:"max-[800px]:border-accent border-line",firstOnDesktop:"",dotAt:()=>"-top-[66px] left-[-5px] max-[800px]:left-[-5px] max-[800px]:top-7"},stack:{hideStacked:"hidden",stackedPast:"border-accent",firstOnDesktop:"",dotAt:()=>"left-[-5px] top-7"}};function w(t){const e=t.filter(n=>!n.future).length;return t.length?e/t.length*100:0}function v({pct:t,tier:e="section"}){return o("div",{className:`pointer-events-none absolute inset-x-0 top-0 h-px bg-line ${i[e].hideStacked}`,children:t===void 0?null:o("div",{className:p,style:{width:`${t}%`}})})}const p="absolute -top-px left-0 h-[3px] bg-gradient-to-r from-accent to-transparent";function T(t,e,n="section"){const r=i[n];return["border-l",t?"border-line":r.stackedPast,e?r.firstOnDesktop:""].join(" ")}function g({future:t,first:e,tier:n="section"}){return o("span",{...n==="section"?{}:{[h]:""},className:[n==="section"?"pointer-events-none absolute h-2.5 w-2.5 rounded-full border-2 border-bg":"pointer-events-none absolute z-[1] h-2.5 w-2.5 rounded-full border-2 border-[color:var(--theme-bg,var(--bg))]",t?"border-line bg-surface-2":"bg-accent",i[n].dotAt(e)].join(" ")})}function L(t){return t?"text-fg-dim":"text-accent"}const x={boxShadow:"0 0 0 4px var(--bg)"},N="border-l border-line";function O(){return o("span",{className:"absolute left-[-5px] top-1.5 h-2.5 w-2.5 rounded-full bg-accent",style:x})}function P(){return o("span",{"aria-hidden":!0,className:"pointer-events-none absolute top-0 h-full w-px bg-line left-[7px] min-[801px]:left-1/2 min-[801px]:-translate-x-1/2"})}function C(){return o("span",{className:"absolute top-1.5 h-2.5 w-2.5 rounded-full bg-accent left-[2px] min-[801px]:left-1/2 min-[801px]:-translate-x-1/2",style:x})}function D(t){return t%2===0}const s="data-tl-rail",u="data-tl-stop",f="data-tl-future",h="data-tl-dot",m="data-tl-gold",k=24,c=S(null);function y(){return $(c)}function R(){const t=`[${u}]`,e=`${t}:not([${f}])`,n=`:nth-last-child(1 of ${e}, :has(${e}))`,r=[];for(let l=1;l<=k;l++)r.push(`[${s}] .tl-stops>:nth-child(${l})${n} [${m}]{display:block;width:calc(${l} * 100% / var(--cols))}`);const d=`[${s}] .tl-stops>:first-child:is(${t}),[${s}] .tl-stops>:first-child ${t}`;return`@media (min-width:801px){${r.join("")}${d}{border-left-width:0}:is(${d}) [${h}]{left:-1px}}`}const I="tl-stops";function j({row:t,stops:e,children:n}){return a("div",{[s]:"",className:t?"relative border-t border-line max-[800px]:border-t-0":"relative",style:{"--cols":e},children:[t?a(b,{children:[o("style",{children:R()}),o(v,{tier:"row"})]}):null,o("div",{className:t?"pt-[60px] max-[800px]:pt-0":void 0,children:o(c.Provider,{value:t?"row":"stack",children:n})})]})}function E({on:t,future:e,children:n}){const r=t;return a("div",{[u]:"",...e?{[f]:""}:{},className:`h-full ${T(e,!1,r)} ${t==="row"?"max-[800px]:ml-1.5":"ml-1.5"}`,children:[t==="row"&&!e?o("span",{[m]:"",className:`pointer-events-none hidden ${p}`}):null,a("div",{className:t==="row"?"relative h-full max-[800px]:py-6 max-[800px]:pl-7":"relative h-full py-6 pl-7",children:[o(g,{future:e,first:!1,tier:r}),o(c.Provider,{value:null,children:n})]})]})}export{j as BoxRail,E as BoxRailStop,C as CentreRailDot,P as CentreRailLine,I as RAIL_STOPS_CLASS,N as SPINE_LINE_CLASS,O as SpineDot,g as TrackRailDot,v as TrackRailLine,w as railPastShare,D as railSideIsLeft,L as railYearInkClass,T as trackStopRailClass,y as useTimelineRail};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as t}from"react/jsx-runtime";import{SiteLink as j}from"../lib/site-runtime.js";import T from"./EditorialSectionHead.js";import f from"./PartStyledText.js";import{withRMark as o}from"./RMark.js";import{renderGold as g,renderHeadline as w}from"./goldPhrases.js";import{railPastShare as B,railYearInkClass as z,TrackRailDot as R,TrackRailLine as $,trackStopRailClass as C}from"./TimelineRail.js";const i={body:"text-[length:var(--size-body,13px)]",headingSmall:"text-[length:var(--size-headingSmall,20px)]",label:"text-[length:var(--size-label,13px)]"};function E({eyebrow:u,title:s,intro:p,entries:h,cta:l,padTop:m,padBottom:x,background:b,editing:v,omitHead:d=!1}={}){const k=typeof m=="number"?m:120,y=typeof x=="number"?x:120,c=b??"var(--section-bg)",N=c!=="transparent",a=(h??[]).filter(e=>(e.date??"").trim()||(e.title??"").trim()||(e.blurb??"").trim());if(a.length===0&&!v)return null;const S=B(a);return r("section",{className:"relative z-[2]",children:r("div",{className:"border-b border-line",style:{paddingTop:k,paddingBottom:y,...N?{backgroundColor:c}:{}},children:t("div",{className:"mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]",children:[d?null:r(T,{num:u,title:s?w(s):void 0,desc:p?g(p,!0):void 0,spaceBelow:"",className:"text-fg"}),t("div",{className:d?"relative mt-0 grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-[1100px]:mt-0 max-[1100px]:grid-cols-1 max-[1100px]:gap-0 max-[1100px]:border-t-0 max-[1100px]:pt-0":"relative mt-[60px] grid grid-cols-[repeat(var(--cols),minmax(0,1fr))] gap-0 border-t border-line pt-[60px] max-[1100px]:mt-9 max-[1100px]:grid-cols-1 max-[1100px]:gap-0 max-[1100px]:border-t-0 max-[1100px]:pt-0",style:{"--cols":a.length},children:[r($,{pct:S}),a.map((e,n)=>t("div",{className:["relative flex min-h-[280px] flex-col gap-3.5 px-3.5",C(!!e.future,n===0),"max-[1100px]:min-h-0 max-[1100px]:border-t-0 max-[1100px]:py-6 max-[1100px]:pl-7 max-[1100px]:ml-1.5"].join(" "),children:[r(R,{future:!!e.future,first:n===0}),r("span",{className:[`font-mono ${i.label} tracking-[0.22em]`,z(!!e.future)].join(" "),children:e.date?r(f,{value:e.date,children:o(e.date)}):""}),e.title&&r("h3",{className:`whitespace-pre-line font-heading3 ${i.headingSmall} font-medium uppercase leading-[1.1] tracking-[-0.02em] text-fg`,children:r(f,{value:e.title,children:o(e.title)})}),e.blurb&&r("p",{className:`mt-auto font-display ${i.body} leading-[1.55] text-fg-dim`,children:g(e.blurb,!0)})]},n))]}),l?.text&&r("div",{className:"mt-12 flex justify-end border-t border-line pt-8",children:t(j,{href:l.href,className:`group inline-flex items-center gap-3.5 border border-line px-6 py-4 font-mono ${i.label} uppercase tracking-[0.3em] text-fg transition-colors hover:border-accent hover:text-accent`,children:[o(l.text),r("span",{"aria-hidden":!0,className:"text-accent transition-transform group-hover:translate-x-[3px]",children:"→"})]})})]})})})}export{E as default};
|
|
@@ -9,6 +9,7 @@ export interface TitleWithButtonsProps {
|
|
|
9
9
|
padTop?: number;
|
|
10
10
|
padBottom?: number;
|
|
11
11
|
buttonsAlign?: "left" | "center" | "right";
|
|
12
|
+
buttonsAlignPhone?: unknown;
|
|
12
13
|
editing?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export default function TitleWithButtons({ title, buttons, padTop, padBottom, buttonsAlign, editing, }?: TitleWithButtonsProps): import("react").JSX.Element | null;
|
|
15
|
+
export default function TitleWithButtons({ title, buttons, padTop, padBottom, buttonsAlign, buttonsAlignPhone, editing, }?: TitleWithButtonsProps): import("react").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r,jsxs as p}from"react/jsx-runtime";import{alignPhoneClass as w}from"../../format/lib/content/block-align.js";import{SiteLink as y}from"../lib/site-runtime.js";import{renderHeadline as j}from"./goldPhrases.js";import{say as N}from"../../format/lib/editor-words.js";function k({title:s,buttons:m,padTop:o,padBottom:x,buttonsAlign:n,buttonsAlignPhone:d,editing:l=!1}={}){const f=typeof o=="number"?o:140,c=typeof x=="number"?x:140,i=(m??[]).filter(t=>l||(t.label??"").trim()),e=!!(s??"").trim(),a=!e&&(n==="center"||n==="left")?n:null,g=e?"":w("items",a??"right",d);return!l&&!e&&i.length===0?null:r("section",{className:"relative z-[2] bg-bg",children:p("div",{className:[a==="center"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]":a==="left"?"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-1 items-center justify-items-start gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]":"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[1fr_auto] items-center gap-[60px] border-b border-line px-[var(--sf-site-gutter,40px)] max-[1100px]:grid-cols-1 max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]",g].filter(Boolean).join(" "),style:{paddingTop:f,paddingBottom:c},children:[a===null&&!e&&i.length>0&&r("div",{"aria-hidden":!0,className:"max-[1100px]:hidden"}),e&&r("h2",{className:"max-w-[1000px] font-display text-[length:min(var(--size-headingLarge,clamp(48px,7vw,108px)),var(--sf-heading-max,9999px))] [font-weight:var(--sf-heading-weight,500)] [text-transform:var(--sf-heading-case,uppercase)] [&_em]:[font-weight:var(--sf-heading-weight-strong,inherit)] leading-[0.94] tracking-[-0.035em] text-fg",children:j(s??"")}),i.length>0&&r("div",{className:"flex min-w-[280px] flex-col gap-3.5 max-[1100px]:min-w-0",children:i.map((t,h)=>{const u=(t.label??"").trim()||N("Button label"),b=t.href||"#",v=t.variant==="primary";return p(y,{href:b,className:["flex items-center justify-between gap-6 px-7 py-5","font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.3em] transition-colors",v?"border border-btn bg-btn text-btn-ink hover:border-fg hover:bg-fg":"border border-line text-fg hover:border-accent hover:text-accent"].join(" "),children:[u," ",r("span",{"aria-hidden":!0,children:"→"})]},h)})})]})})}export{k as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,jsxs as u}from"react/jsx-runtime";import{Fragment as d}from"react";import{linePrefix as N,storefrontLines as
|
|
1
|
+
import{jsx as t,jsxs as u}from"react/jsx-runtime";import{Fragment as d}from"react";import{parseHexColor as L}from"efficient-shell/format";import{linePrefix as N,storefrontLines as _}from"../../format/lib/markup.js";import{COLOUR_TOKEN as h,WORD_STYLE_ATTR as S,WORD_STYLE_BY_KIND as g}from"../../format/lib/word-styles.js";import a from"./PartStyledText.js";import{withRMark as f}from"./RMark.js";function E(e,n=!1){const s=m(n),r=_(e);if(r.length===1){const[c]=r,l=N(c),b=l?O(l,c.children):c.children;return t(a,{value:e,children:o(b,s)})}const i=[];return r.forEach((c,l)=>{if(c.bullet){i.push(t("span",{"data-sf-bullet":"",className:T,children:o(c.children,s)},l));return}if(c.number!=null){i.push(u("span",{"data-sf-number":c.number,className:C,children:[u("span",{className:R,children:[c.number,"."]}),o(c.children,s)]},l));return}l>0&&!k(r[l-1])&&i.push(t("br",{},`br${l}`)),i.push(t(d,{children:o(c.children,s)},l))}),t(a,{value:e,children:i})}const T="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['·']",C="relative block pl-[2em]",R="absolute left-0 w-[1.6em] text-right tabular-nums";function k(e){return e.bullet||e.number!=null}const w="text-accent underline underline-offset-[0.18em]";function O(e,n){const[s,...r]=n;return s?.kind==="text"?[{kind:"text",text:`${e}${s.text}`},...r]:[{kind:"text",text:e},...n]}function A(e){if(e)return L(e)===e.toLowerCase()?e:Object.hasOwn(h,e)?h[e]:void 0}function o(e,n){const s=[];let r=!1;return e.forEach((i,c)=>{if(i.kind==="text"){s.push(t("span",{children:f(i.text)},c)),r=!0;return}r||s.push(t("span",{},`e${c}`)),s.push(x(i,c,n)),r=!1}),r||s.push(t("span",{},"end")),s}function p(e,n){return e.length===1&&e[0].kind==="text"?f(e[0].text):e.map((s,r)=>s.kind==="text"?t(d,{children:f(s.text)},r):x(s,r,n))}function $(e,n=!1){return o(e,m(n))}function m(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function D(e){return t(a,{value:e,children:t("span",{children:e})})}function x(e,n,s){if(e.kind==="link")return t("a",{href:e.href,className:w,children:p(e.children,s)},n);const r=p(e.children,s),i=g[e.kind];if(i)return t("span",{[S]:i,children:r},n);switch(e.kind){case"underline":return t("u",{children:r},n);case"sup":return t("sup",{children:r},n);case"sub":return t("sub",{children:r},n);case"color":{const c=A(e.color);return c?t("span",{style:{color:c},children:r},n):t("span",{children:r},n)}case"accent":case"highlight":return t("em",{className:s,children:r},n);case"bold":return t("strong",{className:"font-semibold",children:r},n);case"italic":return t("em",{className:"italic",children:r},n);case"strike":return t("s",{className:"line-through",children:r},n);default:return t("span",{children:r},n)}}function P(e,n=!0){const s=e.split(`
|
|
2
2
|
`);return t(a,{value:e,children:s.map((r,i)=>u("span",{children:[E(r,n),i<s.length-1?t("br",{}):null]},i))})}function Y(e){return e.split(/\n\s*\n/).map(n=>n.trim()).filter(Boolean)}export{D as renderChrome,E as renderGold,P as renderHeadline,$ as renderMarkupNodes,Y as splitParagraphs};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type LoopDirection } from "../../../format/lib/animation/loop.js";
|
|
3
|
+
export declare const LOOP_COPY_CLASS: {
|
|
4
|
+
readonly across: "pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[calc(var(--sf-gap-len,0px)/2)]";
|
|
5
|
+
readonly down: "pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[calc(var(--sf-gap-len,0px)/2)]";
|
|
6
|
+
};
|
|
7
|
+
export declare function loopCopyClass(direction: LoopDirection): string;
|
|
8
|
+
export declare function LoopTrack({ direction, seconds, delay, editing, copy, }: {
|
|
9
|
+
direction: LoopDirection;
|
|
10
|
+
seconds: number;
|
|
11
|
+
delay: number;
|
|
12
|
+
editing: boolean;
|
|
13
|
+
copy: (loopClass: string) => ReactNode;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as c,jsx as s,jsxs as i}from"react/jsx-runtime";import{isVerticalLoop as e,loopAnimation as m}from"../../../format/lib/animation/loop.js";const n={across:"pr-[var(--sf-gap-len,0px)] max-[800px]:pr-[calc(var(--sf-gap-len,0px)/2)]",down:"pb-[var(--sf-gap-len,0px)] max-[800px]:pb-[calc(var(--sf-gap-len,0px)/2)]"};function o(a){return e(a)?n.down:n.across}function v({direction:a,seconds:l,delay:p,editing:t,copy:r}){if(t)return s(c,{children:r("")});const x=e(a);return s("div",{className:"overflow-hidden",children:i("div",{className:x?"flex flex-col":"flex w-max",style:{animation:m(a,l,p)},children:[r(o(a)),s("div",{className:"contents","aria-hidden":!0,inert:!0,children:r(o(a))})]})})}export{n as LOOP_COPY_CLASS,v as LoopTrack,o as loopCopyClass};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type EntranceValue } from "efficient-shell/format";
|
|
2
|
+
export declare const ENTRANCE_KEYS: {
|
|
3
|
+
readonly kind: "entrance";
|
|
4
|
+
readonly from: "entranceFrom";
|
|
5
|
+
readonly duration: "entranceDuration";
|
|
6
|
+
readonly delay: "entranceDelay";
|
|
7
|
+
};
|
|
8
|
+
export declare const LEGACY_ENTRANCE_KEY = "sectionAnimation";
|
|
9
|
+
export type EntranceView = "desktop" | "phone";
|
|
10
|
+
type Props = Readonly<Record<string, unknown>>;
|
|
11
|
+
export declare function entranceOf(props: Props, view: EntranceView): EntranceValue;
|
|
12
|
+
export declare function entranceDrawn(props: Props): {
|
|
13
|
+
desktop: EntranceValue;
|
|
14
|
+
phone: EntranceValue;
|
|
15
|
+
} | null;
|
|
16
|
+
export declare const ENTRANCE_EXCLUDED_WHY: Readonly<Record<string, string>>;
|
|
17
|
+
export declare const ENTRANCE_EXCLUDED: ReadonlySet<string>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{phoneKey as c}from"efficient-easel/draw";import{readEntrance as d}from"efficient-shell/format";import{SECTION_THEME_EXCLUDED as l}from"../../../format/lib/content/section-surface.js";const i={kind:"entrance",from:"entranceFrom",duration:"entranceDuration",delay:"entranceDelay"},u="sectionAnimation",a=e=>e!=null&&e!=="";function f(e,n){const t=e[i[n]];return n==="kind"&&!a(t)?e[u]:t}function o(e,n,t){if(t==="phone"){const r=e[c(i[n])];if(a(r))return r}return f(e,n)}function s(e,n){return d(o(e,"kind",n),o(e,"from",n),o(e,"duration",n),o(e,"delay",n))}function b(e){const n=s(e,"desktop"),t=s(e,"phone");return n.kind==="none"&&t.kind==="none"?null:{desktop:n,phone:t}}const m={...Object.fromEntries([...l].map(e=>[e,"a root position: sticky bar; an outer box becomes its sticky containing block and the pin collapses (the same fact every wrapper pass excludes it for, lib/content/section-surface)"])),HeroSlide:"a slide is a direct child of the Hero's transform track ([&>*]:basis-full); a wrapper would take its width, and the Hero already moves one slide in at a time",HeroGroup:"a slide box is placed by grid-item properties on its own root (--sf-hg-row, justify-self); a wrapper becomes the grid item and the box loses its anchor (lib/document/blocks/general/HeroGroup/meta)"},h=new Set(Object.keys(m));export{h as ENTRANCE_EXCLUDED,m as ENTRANCE_EXCLUDED_WHY,i as ENTRANCE_KEYS,u as LEGACY_ENTRANCE_KEY,b as entranceDrawn,s as entranceOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{CardRowDrawn as R}from"../../../../../components/CardRowContext.js";import g from"../../../../../components/ButtonBlock.js";import{CARD_ROW_LINK_PROP as p,namedRowField as i}from"../../../../../../format/lib/content/card-template.js";import{CTA_PH as O}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as _}from"../../scaffold.js";import{phoneKey as j}from"efficient-easel/draw";import{ButtonBlockMeta as k}from"../../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";const H={...k,render:o=>{const{label:e,href:l,variant:a,align:c,alignPhone:m,contained:d,arrow:f,icon:h,iconPosition:u,widthFit:b,buttonColor:s,buttonTextColor:w,editor:P}=o,B=Object.fromEntries(Object.entries(o).filter(([t])=>t==="buttonFillOpacity"||t==="buttonBorder"||t.startsWith("buttonPadding"))),n=(t,F)=>r(g,{label:_(t,O.text,P)??"",href:F,variant:a,align:c,alignPhone:m,contained:d,arrow:f,icon:h,iconPosition:u,widthFit:b,widthFitPhone:o[j("widthFit")],buttonColor:s,buttonTextColor:w,...B}),C=i(o),x=i(o,p);return!C&&!x?n(e,l):r(R,{type:"ButtonBlock",props:o,children:t=>n(t.label,t.href)})}};export{H as ButtonBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as a,jsx as o}from"react/jsx-runtime";import n from"../../../../../components/Eyebrow.js";import{hidableText as p,readHidable as f}from"efficient-easel/draw";import{parseEyebrowBlockLook as d}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{PH as b}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as l}from"../../scaffold.js";import{EyebrowMeta as s}from"../../../../../../format/lib/document/blocks/general/Eyebrow/meta.js";const P={...s,render:({eyebrow:r,align:e,alignPhone:t,eyebrowLook:m,editor:i})=>f(r).hidden?o(a,{}):o(n,{text:l(p(r),b.eyebrow,i)??"",align:e,alignPhone:t,look:d(m)})};export{P as EyebrowRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{phoneKey as a}from"efficient-easel/draw";import n from"../../../../../components/Flex.js";import{loopDelayOf as i,loopSecondsOf as l,parseLoop as t,parseLoopDirection as h}from"../../../../../../format/lib/animation/index.js";import{padValuesOf as c}from"../../../../content/section-padding.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{FlexMeta as d}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";const y={...d,render:e=>o(n,{direction:e.direction,label:e.label,tabShape:e.tabShape,gap:e.gap,gapPhone:e[a("gap")],justify:e.justify,align:e.align,wrap:e.wrap,share:e.share,sharePhone:e[a("share")],phoneRow:e.phoneRow,separator:e.separator,blockSpacing:e.blockSpacing,bgImage:e.bgImage,bgImagePhone:e.bgImagePhone,darken:e.darken,darkenStyle:e.darkenStyle,placement:e.placement,padV2:e.padV2===!0,border:e.sectionBorder,borderPhone:e.sectionBorderPhone,pad:c(e),contained:e.contained,fillHeight:g(e),shadow:e.shadow,loop:t(e.loop),scrollDirection:h(e.scrollDirection),loopSeconds:l({loopDuration:e.loopDuration}),loopDelay:i({loopDelay:e.loopDelay}),editing:!!e.editor?.isEditing,fillColor:e.fillColor,line:e.line,upcoming:e.upcoming,link:e.link,boxShape:e.boxShape,boxShapePhone:e[a("boxShape")],jumpHighlight:e.jumpHighlight,anchor:e.anchor,content:e.content})};export{y as FlexRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as n,jsx as t}from"react/jsx-runtime";import{padValuesOf as d}from"../../../../content/section-padding.js";import m from"../../../../../components/Heading.js";import{hidableText as f,readHidable as p}from"efficient-easel/draw";import{PH as l}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as g}from"../../scaffold.js";import{HeadingMeta as s}from"../../../../../../format/lib/document/blocks/general/Heading/meta.js";const j={...s,render:e=>{const{text:r,level:o,contained:i,editor:a}=e;return p(r).hidden?t(n,{}):t(m,{text:g(f(r),l.heading,a)??"",level:o,contained:i,pad:d(e)})}};export{j as HeadingRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import{
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{CardRowDrawn as u}from"../../../../../components/CardRowContext.js";import w from"../../../../../components/ImageBlock.js";import{cardTemplateField as y,namedRowField as k,rowFieldText as x}from"../../../../../../format/lib/content/card-template.js";import{ImageBlockMeta as B}from"../../../../../../format/lib/document/blocks/general/ImageBlock/meta.js";const j={...B,render:e=>{const t=k(e);return t?a(u,{type:"ImageBlock",props:e,children:(o,r)=>{const n=r?y(r.ownerType,t)?.alt:void 0;return c(e,o.src,(n&&x(r?.row,n))??e.alt)}}):c(e,e.src,e.alt)}};function c({aspect:e,contained:t,grayscale:o,href:r,fit:n,focal:d,focalPhone:i,corners:l,cornerSides:m,editor:f},s,g){return a(w,{src:s,alt:g,aspect:e,contained:t,grayscale:o,href:r,fit:n,focal:d,focalPhone:typeof i=="string"?i:void 0,corners:l,cornerSides:m,editing:f?.isEditing===!0})}export{j as ImageBlockRender};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as i,jsx as r}from"react/jsx-runtime";import{readHidable as s}from"efficient-easel/draw";import l from"../../../../../components/LocationMap.js";import{hasMapCoords as c}from"../../../../../../format/lib/map-styles.js";import{LocationMapMeta as d}from"../../../../../../format/lib/document/blocks/general/LocationMap/meta.js";const u="relative overflow-hidden h-full min-h-[560px] max-[1100px]:h-auto max-[1100px]:min-h-0 max-[1100px]:aspect-square",x=new Set(["auto","dark","light"]),a=t=>s(t).text.trim(),b={...d,render:t=>{const e=Number(t.lat),n=Number(t.lng),o=t.editor?.isEditing===!0;if(!o&&!c(e,n))return r(i,{});const m=t.mapTheme;return r(l,{name:a(t.name),state:a(t.state),country:a(t.country),lat:e,lng:n,mapsUrl:a(t.mapsUrl),mapTheme:x.has(m)?m:"auto",editing:o,boxClass:u})}};export{b as LocationMapRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as m}from"react/jsx-runtime";import c from"../../../../../components/LogoBlock.js";import{readHidable as
|
|
1
|
+
import{jsx as m}from"react/jsx-runtime";import c from"../../../../../components/LogoBlock.js";import{readHidable as s}from"efficient-easel/draw";import{readLogoColor as g}from"../../../../../../format/lib/logo/logo-color.js";import{LogoBlockMeta as p}from"../../../../../../format/lib/document/blocks/general/LogoBlock/meta.js";const k={...p,render:({src:r,alt:t,href:n,heightPx:d,reverse:f,customColor:i,align:o,alignPhone:l})=>{const e=g(f,i);return m(c,{src:r||void 0,alt:s(t).text||void 0,href:n||void 0,heightPx:d,reverse:e.reverse,color:e.color,align:o==="left"||o==="center"||o==="right"?o:void 0,alignPhone:l})}};export{k as LogoBlockRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as b}from"react/jsx-runtime";import f from"../../../../../components/Manifesto.js";import{sectionFillsHeight as g}from"../../../../../../format/lib/content/section-min-height.js";import{PH as e}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as h,phHideDefault as a}from"../../scaffold.js";import{ManifestoMeta as c}from"../../../../../../format/lib/document/blocks/general/Manifesto/meta.js";const y=[{value:"00",label:e.label},{value:"00",label:e.label},{value:"00",label:e.label}],H={...c,render:t=>{const{eyebrow:r,heading:i,body:l,stats:s,imageSrc:d,grayscale:n,widthMode:m,editor:o}=t;return b(f,{eyebrow:a(r,e.eyebrow,o),heading:a(i,e.heading,o),body:a(l,e.body,o),stats:h(s,y,o),imageSrc:d||void 0,grayscale:n,widthMode:m,fillHeight:g(t)})}};export{H as ManifestoRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as n}from"react/jsx-runtime";import{resolveWidth as
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{resolveWidth as v}from"../../../../../../format/lib/content/section-width.js";import{FRAME as N}from"../../../../../components/BlockFrame.js";import b from"../../../../../components/EditorialSectionHead.js";import{renderGold as E,renderHeadline as G}from"../../../../../components/goldPhrases.js";import l from"../../../../../components/SectionHeader.js";import{hidableText as d}from"efficient-easel/draw";import{parseNaturalDescriptionSize as R,parseNaturalRowGap as j,parseSectionHeadStyle as z}from"../../../../../../format/lib/sections/section-head-style.js";import{parseSectionEyebrowLook as c}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{phHide as t}from"../../scaffold.js";import{SectionHeaderMeta as L}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const I={...L,render:({headStyle:u,num:o,numStyle:f,eyebrowLook:p,title:i,description:s,logoSrc:m,logoAlt:x,linkText:H,linkHref:h,rowGap:k,descriptionSize:w,widthMode:g,editor:e})=>{const S=t(H,"View all",e),y=v({widthMode:g},"full"),r=z(u);return n("section",{className:"px-[var(--sf-site-gutter,40px)] pt-10 max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))] max-[800px]:pt-6",children:n("div",{className:y.mode==="page"?N:void 0,children:r==="editorial"?n(b,{num:t(o,"01 / Section",e),title:(()=>{const a=t(i,"Section *title*",e);return a?G(a,!0):void 0})(),desc:(()=>{const a=t(s,"Short supporting line",e);return a?E(a):void 0})(),spaceBelow:""}):r==="simple"?n(l,{look:"simple",num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),eyebrowLook:c(p,"SectionHeader")}):r==="statement"?n(l,{look:"statement",num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),eyebrowLook:c(p,"SectionHeader")}):r==="natural"?n(l,{look:"natural",num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),description:t(s,"Short supporting line",e),eyebrowLook:c(p,"SectionHeader"),rowGap:j(k),descriptionSize:R(w)}):r==="essay"?n(l,{look:"essay",num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),eyebrowLook:c(p,"SectionHeader")}):n(l,{num:t(o,"01 / Section",e),title:t(i,"Section *title*",e),description:t(s,"Short supporting line",e),logo:m?{src:m,alt:d(x)}:void 0,link:S?{text:S,href:d(h)||"#"}:void 0,numStyle:f,accent:!0})})})}};export{I as SectionHeaderRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import d from"../../../../../components/Split.js";import{sectionFillsHeight as m}from"../../../../../../format/lib/content/section-min-height.js";import{hidableText as g}from"efficient-easel/draw";import{phHide as t,ctaHide as f}from"../../scaffold.js";import{SplitMeta as c,SPLIT_PH as i,IMGBTN_PH as x}from"../../../../../../format/lib/document/blocks/general/Split/meta.js";function o(e,a,l){const n=t(e,x.text,l);if(n!==void 0)return{text:n,href:a||"#"}}const h={...c,render:e=>r(d,{eyebrow:t(e.eyebrow,i.eyebrow,e.editor),title:t(e.title,i.title,e.editor),body:t(e.body,i.body,e.editor),imageLabel:g(e.title)||i.title,imageSrc:e.imageSrc||void 0,reverse:e.reverse,uppercase:e.uppercase,textAlign:e.textAlign,textAlignPhone:e.textAlignPhone,cta:f(e.ctaText,e.ctaHref,e.editor),imageButton:o(e.imageBtnText,e.imageBtnHref,e.editor),textBgSrc:e.textBgSrc||void 0,textBgTint:(typeof e.overlay=="number"?e.overlay:60)/100,grayscale:e.grayscale,fillHeight:m(e)})};export{h as SplitRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fragment as
|
|
1
|
+
import{Fragment as p,jsx as r}from"react/jsx-runtime";import{CardRowDrawn as s}from"../../../../../components/CardRowContext.js";import{namedRowField as y}from"../../../../../../format/lib/content/card-template.js";import{padValuesOf as P}from"../../../../content/section-padding.js";import T from"../../../../../components/Text.js";import{hidableText as i,readHidable as u}from"efficient-easel/draw";import{PH as d}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phPrev as w}from"../../scaffold.js";import{readPartStyle as S}from"../../../part-styles.js";import{TextMeta as b}from"../../../../../../format/lib/document/blocks/general/Text/meta.js";const W={...b,render:t=>{const{text:o,align:m,alignPhone:l,tone:f,tag:x,contained:c,editor:g}=t;if(u(o).hidden)return r(p,{});const n=S(t,"text").textStyle,h=n?.startsWith("heading-")?d.heading:d.body,a=e=>r(T,{text:w(e,h,g)??"",align:m,alignPhone:l,tone:f,tag:x,textStyle:n,contained:c,pad:P(t)});return y(t)?r(s,{type:"Text",props:t,children:e=>a(i(e.text))}):a(i(o))}};export{W as TextRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as d}from"react/jsx-runtime";import f from"../../../../../components/TickerSection.js";import{loopDelayOf as l,loopSecondsOf as T,parseLoopDirection as S}from"../../../../../../format/lib/animation/index.js";import{phRows as j}from"../../scaffold.js";import{TickerMeta as k,TICKER_SCAFFOLD_ITEMS as x}from"../../../../../../format/lib/document/blocks/general/Ticker/meta.js";const g={...k,render:({items:r,tone:e,borders:i,size:s,separator:t,scrollDirection:p,speed:m,loopDuration:n,loopDelay:c,join:a,editor:o})=>d(f,{items:j(r,x,o),tone:e,borders:i,size:s,separator:t,scroll:S(p),seconds:T({loopDuration:n,speed:m}),delay:l({loopDelay:c}),join:a,editing:o?.isEditing})};export{g as TickerRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as h}from"react/jsx-runtime";import p from"../../../../../components/TitleWithButtons.js";import{readHidable as d}from"efficient-easel/draw";import{CTA_PH as t}from"../../../../../../format/lib/document/blocks/placeholders.js";import{phRows as u,phHide as _}from"../../scaffold.js";import{TitleWithButtonsMeta as b,TITLE_WITH_BUTTONS_PH as c}from"../../../../../../format/lib/document/blocks/general/TitleWithButtons/meta.js";const x=[{label:t.text,href:t.href,variant:"primary"},{label:t.text,href:t.href,variant:"outline"}],O={...b,render:({title:n,buttons:m,padTop:r,padBottom:i,buttonsAlign:T,buttonsAlignPhone:l,editor:e})=>{const o=T,f=o==="center"||o==="left",s=d(n),a=s.hidden?"":s.text.trim();return h(p,{title:f&&!a?void 0:_(n,c.title,e),buttons:u(m,x,e),padTop:typeof r=="number"?r:140,padBottom:typeof i=="number"?i:140,buttonsAlign:o,buttonsAlignPhone:l,editing:e?.isEditing})}};export{O as TitleWithButtonsRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BannerRender as r}from"./Banner/render.js";import{BreadcrumbRender as e}from"./Breadcrumb/render.js";import{ButtonBlockRender as o}from"./ButtonBlock/render.js";import{CardsRender as t}from"./Cards/render.js";import{CategoryBarRender as m}from"./CategoryBar/render.js";import{ChartRender as i}from"./Chart/render.js";import{ContactLocationsRender as n}from"./ContactLocations/render.js";import{CustomHTMLRender as d}from"./CustomHTML/render.js";import{DividerRender as a}from"./Divider/render.js";import{DocBodyRender as p}from"./DocBody/render.js";import{DocMastheadRender as R}from"./DocMasthead/render.js";import{DocMetaCardsRender as f}from"./DocMetaCards/render.js";import{DocTabsRender as s}from"./DocTabs/render.js";import{EyebrowRender as c}from"./Eyebrow/render.js";import{FAQRender as S}from"./FAQ/render.js";import{FeaturedCoverRender as l}from"./FeaturedCover/render.js";import{FlexRender as g}from"./Flex/render.js";import{FootprintRender as B}from"./Footprint/render.js";import{GridRender as u}from"./Grid/render.js";import{HeadingRender as C}from"./Heading/render.js";import{HeroRender as T}from"./Hero/render.js";import{HeroGroupRender as H}from"./HeroGroup/render.js";import{HeroSingleRender as
|
|
1
|
+
import{BannerRender as r}from"./Banner/render.js";import{BreadcrumbRender as e}from"./Breadcrumb/render.js";import{ButtonBlockRender as o}from"./ButtonBlock/render.js";import{CardsRender as t}from"./Cards/render.js";import{CategoryBarRender as m}from"./CategoryBar/render.js";import{ChartRender as i}from"./Chart/render.js";import{ContactLocationsRender as n}from"./ContactLocations/render.js";import{CustomHTMLRender as d}from"./CustomHTML/render.js";import{DividerRender as a}from"./Divider/render.js";import{DocBodyRender as p}from"./DocBody/render.js";import{DocMastheadRender as R}from"./DocMasthead/render.js";import{DocMetaCardsRender as f}from"./DocMetaCards/render.js";import{DocTabsRender as s}from"./DocTabs/render.js";import{EyebrowRender as c}from"./Eyebrow/render.js";import{FAQRender as S}from"./FAQ/render.js";import{FeaturedCoverRender as l}from"./FeaturedCover/render.js";import{FlexRender as g}from"./Flex/render.js";import{FootprintRender as B}from"./Footprint/render.js";import{GridRender as u}from"./Grid/render.js";import{HeadingRender as C}from"./Heading/render.js";import{HeroRender as T}from"./Hero/render.js";import{HeroGroupRender as H}from"./HeroGroup/render.js";import{HeroSingleRender as M}from"./HeroSingle/render.js";import{HeroSlideRender as L}from"./HeroSlide/render.js";import{ImageBlockRender as h}from"./ImageBlock/render.js";import{IntegrationsRender as k}from"./Integrations/render.js";import{IntroBleedRender as y}from"./IntroBleed/render.js";import{CountdownRender as P}from"./Countdown/render.js";import{KeyFeaturesRender as D}from"./KeyFeatures/render.js";import{LocationMapRender as F}from"./LocationMap/render.js";import{LogoBlockRender as b}from"./LogoBlock/render.js";import{LogosRender as E}from"./Logos/render.js";import{LongReadRender as I}from"./LongRead/render.js";import{ManifestoRender as x}from"./Manifesto/render.js";import{MastheadRender as A}from"./Masthead/render.js";import{MockupRender as G}from"./Mockup/render.js";import{OrderSummaryRender as v}from"./OrderSummary/render.js";import{ParagraphsARender as w}from"./ParagraphsA/render.js";import{PaymentBadgesRender as K}from"./PaymentBadges/render.js";import{PostCardRender as N}from"./PostCard/render.js";import{ProcessStepsRender as O}from"./ProcessSteps/render.js";import{ProseRender as Q}from"./Prose/render.js";import{SectionHeaderRender as W}from"./SectionHeader/render.js";import{SeriesRender as _}from"./Series/render.js";import{SpacerRender as j}from"./Spacer/render.js";import{SpecStripRender as q}from"./SpecStrip/render.js";import{SplitRender as z}from"./Split/render.js";import{StatsRender as J}from"./Stats/render.js";import{StatsParagraphRender as U}from"./StatsParagraph/render.js";import{TestimonialsRender as V}from"./Testimonials/render.js";import{TextRender as X}from"./Text/render.js";import{TickerRender as Y}from"./Ticker/render.js";import{TimelineRender as Z}from"./Timeline/render.js";import{TimelineTrackRender as $}from"./TimelineTrack/render.js";import{TitleWithButtonsRender as rr}from"./TitleWithButtons/render.js";const oe={Banner:r,Breadcrumb:e,ButtonBlock:o,Cards:t,CategoryBar:m,Chart:i,ContactLocations:n,CustomHTML:d,Divider:a,DocBody:p,DocMasthead:R,DocMetaCards:f,DocTabs:s,Eyebrow:c,FAQ:S,FeaturedCover:l,Flex:g,Footprint:B,Grid:u,Heading:C,Hero:T,HeroGroup:H,HeroSingle:M,HeroSlide:L,ImageBlock:h,Integrations:k,IntroBleed:y,Countdown:P,KeyFeatures:D,LocationMap:F,LogoBlock:b,Logos:E,LongRead:I,Manifesto:x,Masthead:A,Mockup:G,OrderSummary:v,ParagraphsA:w,PaymentBadges:K,PostCard:N,ProcessSteps:O,Prose:Q,SectionHeader:W,Series:_,Spacer:j,SpecStrip:q,Split:z,Stats:J,StatsParagraph:U,Testimonials:V,Text:X,Ticker:Y,Timeline:Z,TimelineTrack:$,TitleWithButtons:rr};export{oe as GENERAL_RENDERS};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PartRow } from "../../../sections/section-to-box.js";
|
|
2
|
+
type Props = Record<string, unknown>;
|
|
3
|
+
export type HeadLook = "standard" | "editorial" | "simple" | "essay" | "shelf";
|
|
4
|
+
export declare function headLookOf(type: string): HeadLook;
|
|
5
|
+
export declare const HEAD_BELOW: Readonly<Record<HeadLook, number>>;
|
|
6
|
+
export declare function editorialHeadTree(num: string, title: string, description: string): PartRow;
|
|
7
|
+
export declare const token: (step: string, px: number, pxPhone?: number, stepPhone?: string) => Props;
|
|
8
|
+
export declare function headTree(type: string): PartRow;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{SPLITTABLE_SECTIONS as f}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as x,DIM as B,INNER_BOX as o,SH_LINK as E,TEXT as S,smallText as N}from"./section-to-box-row-parts.js";import{labelTextSeed as P}from"../../../../../format/lib/document/text-seeds.js";function L(e){if(e==="ProductGrid")return"shelf";const t=f[e]?.headStyle;return t==="editorial"||t==="simple"||t==="essay"?t:"standard"}const W={standard:64,editorial:60,simple:36,essay:28,shelf:20},_={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function I(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};const t=f[e];if(!t)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:t.num,title:t.title,description:t.description,link:t.headRows.includes("linkText")&&t.headRows.includes("linkHref")}}function j(e,t,n){const i=`editorial:${e}|${t}|${n}`,r=d.get(i);if(r)return r;const s=w({num:e,title:t,description:n,link:!1});return d.set(i,s),s}const g={top:0,right:0,bottom:1,left:0},a=(e,t,n,i)=>({sizeToken:{step:e,px:t,...i?{stepPhone:i}:{},...n?{pxPhone:n}:{}}}),T=(e,t,n,i)=>({sizeToken:{step:e,px:i,fluid:{minPx:t,vw:n}}}),l=(e,t,n={})=>N(e,{...a("label",t),...n}),c=(e,t)=>({kind:"text",key:e,role:"heading",props:S,style:{textStyle:"heading-2",...t}}),u=(e,t,n,i)=>({kind:"text",key:e,props:{...B,align:"right",maxWidth:n},style:{textStyle:"body-5",fontRole:"heading",...a("body",t),...i}}),k={...x,align:"right",...E,icon:"arrow-right",iconPosition:"after"},h=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:k,style:{textStyle:"body-5",color:"labels",...a("label",e),letterSpacing:.2,case:"upper"}}),b=(e,t,n)=>{const i=n.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:r=>r[e]===void 0,props:{...S,...i,...n.props,text:t,_partStyles:{text:{...n.role==="eyebrow"?M(P()):{},...n.style}}}}},M=e=>e._partStyles.text??{};function O(e,t){const n=_[e],i=n==="accent",r=l(t.num,14,{color:i?"accent":"labels"}),s=n==="accentNum"&&r.kind==="text"?{...r,mark:"accentLead"}:r,m=c(t.title,i?{...T("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...a("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),p=e==="Collections";return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionBorder:g,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},s,...p?[b(t.num,"==01== / Collections",s)]:[]]},m,...p?[b(t.title,`Three ranges,
|
|
2
|
+
one standard.`,m)]:[]]},{kind:"group",name:"Words",props:{...o,align:"end",gap:12},parts:[...t.description?[u(t.description,14,340,{lineHeight:1.5})]:[],...t.link?[h(14)]:[],...p?[{kind:"block",type:"ButtonBlock",props:{...k,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:h(14).style}}}]:[]]}]}}function w(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"end",justify:"between",gap:40,share:"content",sectionBorder:g,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:40,share:"content"},parts:[{kind:"group",name:"Number",props:{...o,sectionPaddingBottom:8},parts:[l(e.num,13)]},c(e.title,{...T("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{...o,align:"end",sectionPaddingBottom:4},parts:e.description?[u(e.description,14,360,{lineHeight:1.5})]:[]}]}}function H(e,t){return{kind:"group",name:"Header",props:{...o,gap:16},parts:[l(e.num,13),c(e.title,t)]}}const y=[["para",{textStyle:"body-5",...a("label",13),case:"upper",weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...a("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...a("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...a("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...a("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],A=e=>y.some(([t])=>t===e.titleSize)?e.titleSize:"lg";function R(e){return{kind:"group",name:"Header",props:{...o,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:g,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...o,direction:"row",align:"end",gap:24,share:"content"},parts:[l(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...y.map(([t,n])=>({...c(e.title,n),when:i=>A(i)===t}))]},{kind:"group",name:"Words",props:{...o,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[u(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[h(13)]:[]]}]}}const d=new Map;function D(e){const t=d.get(e);if(t)return t;const n=I(e),i=L(e),r=i==="editorial"?w(n):i==="simple"?H(n,{...a("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}):i==="essay"?H(n,{...a("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):i==="shelf"?R(n):O(e,n);return d.set(e,r),r}export{W as HEAD_BELOW,j as editorialHeadTree,L as headLookOf,D as headTree,a as token};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { SECTION_PAD_INNER_DEFAULTS } from "../../passes/section-padding.js";
|
|
2
|
-
import { type BoxEntry, type PartRow, type SiteWrite } from "../../../sections/section-to-box.js";
|
|
2
|
+
import { type BoxEntry, type ConvertContext, type PartRow, type SiteWrite } from "../../../sections/section-to-box.js";
|
|
3
3
|
type Props = Record<string, unknown>;
|
|
4
4
|
export declare const TEXT: Props;
|
|
5
5
|
export declare const DIM: Props;
|
|
6
6
|
export declare const BUTTON: Props;
|
|
7
|
+
export declare const SH_LINK: Props;
|
|
7
8
|
export declare const BOX: Props;
|
|
8
9
|
export declare const INNER_BOX: Props;
|
|
9
10
|
export declare const SECTION_BOX: Props;
|
|
@@ -25,4 +26,11 @@ export declare const headingCaseOf: (key: string) => (node: {
|
|
|
25
26
|
props: Props;
|
|
26
27
|
}) => readonly SiteWrite[];
|
|
27
28
|
export declare const smallText: (key: string, style?: Props) => PartRow;
|
|
29
|
+
export declare const bandPage: (stored: unknown, ctx: ConvertContext) => number;
|
|
30
|
+
export declare const bandIndex: (p: Props, ctx: ConvertContext) => number;
|
|
31
|
+
export declare const bandAccent: (stored: unknown, p: Props, ctx: ConvertContext) => unknown;
|
|
32
|
+
export declare const bandProps: (p: Props, ctx: ConvertContext) => Props;
|
|
33
|
+
export declare const bandWrites: (node: {
|
|
34
|
+
props: Props;
|
|
35
|
+
}, ctx: ConvertContext) => SiteWrite[];
|
|
28
36
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{NESTED_BOX_PADDING as
|
|
1
|
+
import{phoneKey as P}from"efficient-easel/draw";import{ENTRANCE_KEYS as m}from"../../../animation/entrance.js";import{NESTED_BOX_PADDING as u}from"../../../../../format/lib/content/box-layout.js";import{resolveSectionPadding as f}from"../../../content/section-padding.js";import{ButtonBlockMeta as x}from"../../../../../format/lib/document/blocks/general/ButtonBlock/meta.js";import{TextMeta as b}from"../../../../../format/lib/document/blocks/general/Text/meta.js";import{SECTION_PAD_INNER_DEFAULTS as l}from"../../passes/section-padding.js";import{finiteNumber as d}from"../../../../../format/lib/finite-number.js";import{convertTheme as r,hasWords as T}from"../../../sections/section-to-box.js";import{bandPresetIndex as B}from"../../../../../format/lib/theme.js";const{text:C,tag:H,..._}=b.defaultProps,a=_,R={...a,tone:"dim"},{label:L,href:K,...E}=x.defaultProps,U=E,X={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},p={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},F={...p,direction:"column",...u},j={...p,sectionAccent:0},G=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopPhone","stickTopDistancePhone","anchor","sectionAnimation","_hidden",...Object.values(m).flatMap(t=>[t,P(t)]),"widthFit","widthFitPhone","width","widthPhone","minWidth","minWidthPhone","maxWidth","maxWidthPhone"],i="a section width key, ignored since efficient-web-builder 45 (every section, and a section's root Box, follows Site styles only; Lewis 2026-10-29), so dropping it changes nothing",V={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:i,fullWidth:i,pageWidth:i,backgroundWidth:i,contentWidth:i,contentMax:i},J=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(t=>[t,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function S(t,o){const e=d(t.sectionPaddingTop)??0,n=d(t.sectionPaddingBottom)??0;return{sectionPaddingTop:e+o.top,sectionPaddingBottom:n+o.bottom,sectionPaddingTopPhone:(d(t.sectionPaddingTopPhone)??e)+o.topPhone,sectionPaddingBottomPhone:(d(t.sectionPaddingBottomPhone)??n)+o.bottomPhone}}const Y=t=>["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(e,n)=>S(n,typeof t=="function"?t(n):t)[o]]);function s(t,o){const e=f(t,l[o]);return{sectionPaddingTop:e.top,sectionPaddingBottom:e.bottom}}const q=t=>[["padTop","sectionPaddingTop",(o,e)=>s(e,t).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,e)=>s(e,t).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,e)=>s(e,t).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,e)=>s(e,t).sectionPaddingBottom]],N={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},z=t=>o=>T(o.props[t])?[N]:[],Q=(t,o)=>({kind:"text",key:t,role:"eyebrow",props:a,...o?{style:o}:{}}),g=t=>t.background!=="transparent",h=(t,o)=>typeof t=="number"&&Number.isInteger(t)&&t>=0?t:r(o)?.selected??0,c=(t,o)=>{const e=r(o)?.themes;return e&&g(t)?B(e,h(t.sectionAccent,o)):-1},Z=(t,o,e)=>{const n=c(o,e);return n>=0?n:t},$=(t,o)=>{const e=c(t,o);return e>=0?{sectionAccent:e}:{}},tt=(t,o)=>g(t.props)&&c(t.props,o)<0?[{kind:"band-preset",page:h(t.props.sectionAccent,o)}]:[];export{p as BOX,U as BUTTON,R as DIM,V as DROP_COMMON,J as DROP_SIDE_PADDING,N as HEADING_CASE_UPPER,F as INNER_BOX,G as SAME_KEYS,j as SECTION_BOX,X as SH_LINK,a as TEXT,Z as bandAccent,c as bandIndex,h as bandPage,$ as bandProps,tt as bandWrites,z as headingCaseOf,s as innerPad,q as innerPadKeys,Q as smallText,S as wrapperPad,Y as wrapperPadKeys};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cardColumns as D}from"../../../../components/Cards.js";import{CardsMeta as L}from"../../../../../format/lib/document/blocks/general/Cards/meta.js";import{KeyFeaturesMeta as v}from"../../../../../format/lib/document/blocks/general/KeyFeatures/meta.js";import{finiteNumber as g}from"../../../../../format/lib/finite-number.js";import{parseSectionHeadPlacement as F}from"../../../../../format/lib/sections/section-head-placement.js";import{BUTTON as K,DIM as h,DROP_COMMON as a,DROP_SIDE_PADDING as i,INNER_BOX as s,SAME_KEYS as d,SECTION_BOX as p,SH_LINK as I,TEXT as r,headingCaseOf as m,smallText as n,wrapperPad as l,wrapperPadKeys as c}from"./section-to-box-row-parts.js";import{headTree as b}from"./section-head-looks.js";const t=(e,o,B,T)=>({sectionBorder:{top:e,right:o,bottom:B,left:T}}),u=(e,o=e)=>({sectionPaddingTop:e,sectionPaddingRight:e,sectionPaddingBottom:e,sectionPaddingLeft:e,sectionPaddingTopPhone:o,sectionPaddingRightPhone:o,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:o}),k=e=>o=>D(g(o.columns)??g(e.columns)),y=e=>({kind:"group",name:"Grid",props:{...s,gap:0,...t(1,0,0,1)},parts:[e]}),w={...s,direction:"row",gap:0,share:"equal"},P="its head sits in a Box of its own above it (own-box): the row draws the head inline",x=e=>F(e.headPlacement)==="own-box",f="inline is the head the row draws; an own-box node is skipped (`skip`)",A=e=>({kind:"group",name:"Heading",props:e,parts:[n("eyebrow"),{kind:"text",key:"title",role:"heading",props:r,style:{textStyle:"heading-3"},was:{size:44}}]}),S={top:72,bottom:72,topPhone:72,bottomPhone:72},z={...s,gap:12,...u(32,28),...t(0,1,1,0)},M={name:"Cards",boxProps:e=>({...p,direction:"column",gap:36,...l(e,S)}),box:[...d,...c(S)],skip:e=>x(e)?P:typeof e.dataSource=="string"&&e.dataSource?"its cards come from a source: a data list, which waits for the card template on Cards":e.cardStyle==="label-only"?"Label only is Key Features' look: no live node holds it, so it has no row of its own yet":void 0,parts:[b("Cards"),y({kind:"list",key:"items",name:"Card",perRow:k(L.defaultProps),rowName:"Row",rowProps:w,props:z,parts:[{kind:"text",key:"title",props:r,style:{textStyle:"heading-3"},was:{size:20}},{kind:"text",key:"body",props:h,style:{textStyle:"body-1"},was:{size:15}}]})],site:m("title"),drop:{...a,...i,columns:"the rows of N: one Row Box per `columns` cards, which the Box draws as N equal blocks",cardStyle:"the standard card is what the row draws; a Label only node is skipped (0 live nodes)",dataSource:"an empty source is typed cards, what the row draws; a sourced node is skipped (0 live nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 live nodes)",headPlacement:f,eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (JJ's export, 2026-10-24)"}},O={top:76,bottom:76,topPhone:76,bottomPhone:76},W={...s,direction:"row",align:"center",gap:16,sectionPaddingTop:32,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...t(0,1,1,0)},R={textStyle:"body-1",color:"text"},N=(e,o)=>typeof o?.href=="string"&&o.href.trim()!=="",J={name:"Key Features",boxProps:e=>({...p,direction:"column",gap:44,...t(1,0,1,0),...l(e,O)}),box:[...d,...c(O)],parts:[A({...s,direction:"row",align:"end",gap:20,wrap:!0,share:"content"}),y({kind:"list",key:"items",name:"Feature",perRow:k(v.defaultProps),rowName:"Row",rowProps:w,props:W,parts:[{kind:"button",key:"label",href:"href",when:N,variant:"ghost",props:{...K,...I,icon:"none"},style:R},{kind:"text",key:"label",when:(e,o)=>!N(e,o),props:r,style:R,was:{size:17}}]})],site:m("title"),drop:{...a,...i,columns:"the rows of N: one Row Box per `columns` cells, which the Box draws as N equal blocks",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Filled is Key Features' own default (lib/sections/section-eyebrow-look), so 20 of 21 published nodes draw it with nothing stored; the row draws the Plain start look (JJ's export, 2026-10-24)"}},_={top:120,bottom:120,topPhone:80,bottomPhone:80},H={...s,gap:16,sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,...t(0,1,1,0)},C={...s,direction:"row",justify:"between",gap:12,share:"content"},X={name:"Recurring Columns",boxProps:e=>({...p,direction:"column",gap:60,...t(0,0,1,0),...l(e,_)}),box:[...d,...c(_)],skip:e=>x(e)?P:void 0,parts:[b("Series"),y({kind:"list",key:"cards",name:"Column",perRow:()=>4,rowName:"Row",rowProps:w,props:H,parts:[{kind:"group",name:"Top",props:C,parts:[n("num"),n("since")]},{kind:"text",key:"title",props:{...r,tag:"h3"},style:{textStyle:"heading-3"},was:{size:28}},{kind:"text",key:"desc",props:h,style:{textStyle:"body-5"},was:{size:14}},{kind:"group",name:"Footer",props:{...C,justify:"start",align:"center",gap:8,sectionPaddingTop:16,...t(1,0,0,0)},parts:[n("entries",{color:"text"}),n("entriesLabel",{color:"labels"})]}]})],site:m("headTitle"),drop:{...a,...i,headPlacement:f,viewLabel:"the ONE label every card's footer repeated: a block per card would be N copies of one words. Empty on every live node (3 of 3 store it hidden or empty, JJ's export, 2026-10-24)",background:"needs a Box background ink (the section stores a theme token, `var(--section-bg)` on 3 of 3 live nodes): the Box's theme draws its background"}},E={top:60,bottom:60,topPhone:40,bottomPhone:40},q={...s,gap:8,...u(24),...t(1,1,1,1)},j={name:"Document Detail Cards",boxProps:e=>({...p,direction:"column",gap:40,...t(0,0,1,0),...l(e,E)}),box:[...d,...c(E)],parts:[{kind:"list",key:"cards",name:"Card",perRow:()=>3,rowName:"Row",rowProps:{...w,gap:40},props:q,parts:[n("label"),{kind:"text",key:"value",props:r,style:{textStyle:"heading-3"},was:{size:20}},{kind:"text",key:"desc",props:h,style:{textStyle:"body-5",italic:!0},was:{size:14}}]}],drop:{...a,...i}},ee={Cards:M,KeyFeatures:J,Series:X,DocMetaCards:j};export{ee as CARDS_SECTION_TO_BOX};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SectionToBoxRow } from "../../../sections/section-to-box.js";
|
|
2
|
+
export declare const HEAD_ONLY_TYPES: readonly string[];
|
|
3
|
+
export declare function headOnlyRow(type: string): SectionToBoxRow;
|
|
4
|
+
export declare const HEAD_ONLY_SECTION_TO_BOX: Readonly<Record<string, SectionToBoxRow>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SPLITTABLE_SECTIONS as p}from"../../../../../format/lib/sections/section-head-placement.js";import{SECTION_LABELS as l}from"../../../../../format/lib/document/section-catalog.js";import{SAME_KEYS as m,SECTION_BOX as P,innerPad as h}from"./section-to-box-row-parts.js";import{HEAD_BELOW as T,headLookOf as E,headTree as O}from"./section-head-looks.js";import{finiteNumber as u}from"../../../../../format/lib/finite-number.js";const S=["Collections","Events","FAQ","FitmentFinder","FitmentTable","Footprint","GalleryB","LongRead","ProcessSteps","ProductGrid","RelatedProducts","SpecTable"],t=(o,e)=>()=>({top:o,topPhone:e}),a=o=>e=>{const n=h(e,o).sectionPaddingTop;return{top:n,topPhone:n}},f={Collections:t(120,70),Events:t(120,70),FAQ:t(120,70),GalleryB:t(120,70),FitmentTable:t(120,80),SpecTable:t(120,80),LongRead:t(120,80),FitmentFinder:o=>o.layout==="bar"?{top:32,topPhone:20}:{top:80,topPhone:60},RelatedProducts:t(0,0),Footprint:a("Footprint"),ProcessSteps:a("ProcessSteps"),ProductGrid:o=>({top:u(o.padTop)??120,topPhone:0})};function b(o){const e=p[o],n=f[o];if(!e||!n)throw new Error(`section-to-box-rows-head: "${o}" has no head row or no head room`);const s=e.padKey,c=O(o),d=e.headRows.filter(r=>![e.num,e.title,e.description,"linkText","linkHref"].includes(r));return{name:l[o]??o,boxProps:r=>{const i=n(r);return{...P,direction:"column",gap:T[E(o)],sectionPaddingTop:i.top,sectionPaddingTopPhone:i.topPhone}},box:[...m,...s?[[s,"sectionPaddingTop",(r,i)=>n(i).top]]:[]],parts:[c,{kind:"core",keep:"rest",...s?{props:{[s]:0}}:{}}],...d.length?{drop:Object.fromEntries(d.map(r=>[r,"a head setting: the Header Box's Text parts draw it (lib/document/blocks/general/section-head-looks)"]))}:{}}}const A=Object.fromEntries(S.map(o=>[o,b(o)]));export{A as HEAD_ONLY_SECTION_TO_BOX,S as HEAD_ONLY_TYPES,b as headOnlyRow};
|