@40rty/ams-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +148 -0
- package/dist/catalog-data.js +93 -0
- package/dist/catalog-entries.js +8 -0
- package/dist/chunk-432XYPDT.js +1012 -0
- package/dist/chunk-54QPRWEG.js +2800 -0
- package/dist/chunk-CKGGECAQ.js +239 -0
- package/dist/chunk-E3IJDSKY.js +173 -0
- package/dist/chunk-JQNZ5UUK.js +226 -0
- package/dist/chunk-LQLOG2V3.js +649 -0
- package/dist/chunk-MHUEIBJ3.js +117 -0
- package/dist/chunk-ORIOBWTD.js +112 -0
- package/dist/css/preset/motion.css +78 -0
- package/dist/css/preset/tailwind-theme.css +163 -0
- package/dist/css/shell/mobile/island.css +478 -0
- package/dist/hooks.js +25 -0
- package/dist/index.js +7165 -0
- package/dist/motion.js +113 -0
- package/dist/shell.js +5621 -0
- package/dist/types/agent/AgentStreamingState.d.ts +58 -0
- package/dist/types/agent/ProseSurface.d.ts +31 -0
- package/dist/types/agent/index.d.ts +8 -0
- package/dist/types/agent/phase-label.d.ts +13 -0
- package/dist/types/agent/presence/AgentPresenceWidget.d.ts +85 -0
- package/dist/types/agent/presence/BriefIdentity.d.ts +9 -0
- package/dist/types/agent/presence/CompactRead.d.ts +44 -0
- package/dist/types/agent/presence/CriteriaRail.d.ts +68 -0
- package/dist/types/agent/presence/DefaultNotch.d.ts +2 -0
- package/dist/types/agent/presence/FactChip.d.ts +10 -0
- package/dist/types/agent/presence/InlinePresenceRead.d.ts +25 -0
- package/dist/types/agent/presence/KnowledgePeek.d.ts +23 -0
- package/dist/types/agent/presence/LayoutMorphSkeleton.d.ts +59 -0
- package/dist/types/agent/presence/PresenceBrief.d.ts +29 -0
- package/dist/types/agent/presence/PresenceFiller.d.ts +24 -0
- package/dist/types/agent/presence/SourceSift.d.ts +48 -0
- package/dist/types/agent/presence/StreamRead.d.ts +50 -0
- package/dist/types/agent/presence/VoiceLine.d.ts +19 -0
- package/dist/types/agent/presence/band-beat.d.ts +40 -0
- package/dist/types/agent/presence/band-row.d.ts +188 -0
- package/dist/types/agent/presence/cite-image.d.ts +9 -0
- package/dist/types/agent/presence/class-names.d.ts +134 -0
- package/dist/types/agent/presence/element-view.d.ts +83 -0
- package/dist/types/agent/presence/fact-forms/baseline-forms.d.ts +20 -0
- package/dist/types/agent/presence/fact-forms/class-names.d.ts +14 -0
- package/dist/types/agent/presence/fact-forms/index.d.ts +3 -0
- package/dist/types/agent/presence/fact-forms/register.d.ts +9 -0
- package/dist/types/agent/presence/fact-rail.d.ts +76 -0
- package/dist/types/agent/presence/fact-slots.d.ts +97 -0
- package/dist/types/agent/presence/folded.d.ts +26 -0
- package/dist/types/agent/presence/forms.d.ts +5 -0
- package/dist/types/agent/presence/index.d.ts +39 -0
- package/dist/types/agent/presence/notch/PresenceNotch.d.ts +20 -0
- package/dist/types/agent/presence/parts.d.ts +29 -0
- package/dist/types/agent/presence/read-data.d.ts +48 -0
- package/dist/types/agent/presence/reads.d.ts +37 -0
- package/dist/types/agent/presence/sift-deck.d.ts +58 -0
- package/dist/types/agent/presence/source-cards/ArticleSourceCard.d.ts +4 -0
- package/dist/types/agent/presence/source-cards/CollectionSourceCard.d.ts +4 -0
- package/dist/types/agent/presence/source-cards/PolicySourceCard.d.ts +4 -0
- package/dist/types/agent/presence/source-cards/ProductSourceCard.d.ts +4 -0
- package/dist/types/agent/presence/source-cards/ReviewSourceCard.d.ts +4 -0
- package/dist/types/agent/presence/source-cards/SourceCard.d.ts +4 -0
- package/dist/types/agent/presence/source-cards/card-frame.d.ts +38 -0
- package/dist/types/agent/presence/source-cards/card-marks.d.ts +69 -0
- package/dist/types/agent/presence/source-cards/card-plate.d.ts +20 -0
- package/dist/types/agent/presence/source-cards/card-shell.d.ts +91 -0
- package/dist/types/agent/presence/source-cards/register.d.ts +6 -0
- package/dist/types/agent/presence/source-cards/review-passage.d.ts +53 -0
- package/dist/types/agent/presence/swatch.d.ts +4 -0
- package/dist/types/agent/presence/use-band-facts.d.ts +9 -0
- package/dist/types/agent/presence/use-forget-fact.d.ts +56 -0
- package/dist/types/agent/presence/use-measured-height.d.ts +11 -0
- package/dist/types/catalog-data/base.d.ts +2 -0
- package/dist/types/catalog-data/chat.d.ts +55 -0
- package/dist/types/catalog-data/content.d.ts +1129 -0
- package/dist/types/catalog-data/ecommerce.d.ts +4842 -0
- package/dist/types/catalog-data/index.d.ts +7 -0
- package/dist/types/catalog-data/social.d.ts +1552 -0
- package/dist/types/catalog-data/tokens.d.ts +20 -0
- package/dist/types/catalog-data/ugc.d.ts +50 -0
- package/dist/types/catalog-entries.d.ts +35 -0
- package/dist/types/catalog.d.ts +18 -0
- package/dist/types/components/SkeletonSwap.d.ts +27 -0
- package/dist/types/components/agentic/AgentText.d.ts +44 -0
- package/dist/types/components/agentic/Turn.d.ts +21 -0
- package/dist/types/components/browse/CanvasBootLoader.d.ts +16 -0
- package/dist/types/components/browse/ContinuationLoading.d.ts +22 -0
- package/dist/types/components/browse/canvas-booting.d.ts +37 -0
- package/dist/types/components/browse/constants.d.ts +2 -0
- package/dist/types/components/browse/index.d.ts +4 -0
- package/dist/types/components/chat/SuggestionCards.d.ts +2 -0
- package/dist/types/components/chat/index.d.ts +1 -0
- package/dist/types/components/content/FAQ.d.ts +12 -0
- package/dist/types/components/content/FeatureGrid.d.ts +11 -0
- package/dist/types/components/content/InfoCards.d.ts +16 -0
- package/dist/types/components/content/Reviews.d.ts +9 -0
- package/dist/types/components/content/RichText.d.ts +10 -0
- package/dist/types/components/content/article/ArticleDetail.d.ts +15 -0
- package/dist/types/components/content/article/BlogCard.d.ts +11 -0
- package/dist/types/components/content/article/BlogPosts.d.ts +19 -0
- package/dist/types/components/content/page/PageDetail.d.ts +13 -0
- package/dist/types/components/content/page/PolicyDetail.d.ts +23 -0
- package/dist/types/components/ecommerce/cart/AddToCartButton.d.ts +9 -0
- package/dist/types/components/ecommerce/cart/CartContent.d.ts +40 -0
- package/dist/types/components/ecommerce/cart/CartDrawer.d.ts +41 -0
- package/dist/types/components/ecommerce/cart/CartFoot.d.ts +30 -0
- package/dist/types/components/ecommerce/cart/CartLineItem.d.ts +13 -0
- package/dist/types/components/ecommerce/cart/CartLineRow.d.ts +17 -0
- package/dist/types/components/ecommerce/cart/CartPromoCode.d.ts +29 -0
- package/dist/types/components/ecommerce/cart/CartSummary.d.ts +7 -0
- package/dist/types/components/ecommerce/cart/CartWidget.d.ts +10 -0
- package/dist/types/components/ecommerce/cart/VariantPickerModal.d.ts +12 -0
- package/dist/types/components/ecommerce/cart/cart-format.d.ts +8 -0
- package/dist/types/components/ecommerce/cart/use-cart-view.d.ts +50 -0
- package/dist/types/components/ecommerce/collection/CollectionCard.d.ts +10 -0
- package/dist/types/components/ecommerce/collection/CollectionGrid.d.ts +8 -0
- package/dist/types/components/ecommerce/collection/CollectionList.d.ts +13 -0
- package/dist/types/components/ecommerce/collection/internal/CollectionListItem.d.ts +13 -0
- package/dist/types/components/ecommerce/product/AddToRegistry.d.ts +36 -0
- package/dist/types/components/ecommerce/product/ComparisonTable.d.ts +25 -0
- package/dist/types/components/ecommerce/product/ComparisonTableSkeleton.d.ts +11 -0
- package/dist/types/components/ecommerce/product/PresenceProductRail.d.ts +35 -0
- package/dist/types/components/ecommerce/product/ProductBadge.d.ts +9 -0
- package/dist/types/components/ecommerce/product/ProductCard.d.ts +27 -0
- package/dist/types/components/ecommerce/product/ProductDetail.d.ts +25 -0
- package/dist/types/components/ecommerce/product/ProductGallery.d.ts +19 -0
- package/dist/types/components/ecommerce/product/ProductGrid.d.ts +26 -0
- package/dist/types/components/ecommerce/product/ProductImage.d.ts +54 -0
- package/dist/types/components/ecommerce/product/ProductOption.d.ts +9 -0
- package/dist/types/components/ecommerce/product/ProductPrice.d.ts +8 -0
- package/dist/types/components/ecommerce/product/ProductVideoPlayer.d.ts +17 -0
- package/dist/types/components/ecommerce/product/comparison-table-parts.d.ts +41 -0
- package/dist/types/components/ecommerce/product/comparison-table-rows.d.ts +24 -0
- package/dist/types/components/ecommerce/product/image-trim.d.ts +35 -0
- package/dist/types/components/ecommerce/product/product-card-glyphs.d.ts +2 -0
- package/dist/types/components/ecommerce/product/registry-logos.d.ts +2 -0
- package/dist/types/components/ecommerce/product/trim-geometry.d.ts +45 -0
- package/dist/types/components/ecommerce/wishlist/WishlistDrawer.d.ts +16 -0
- package/dist/types/components/feedback/Skeleton.d.ts +13 -0
- package/dist/types/components/feedback/Thinking.d.ts +15 -0
- package/dist/types/components/layout/AspectRatio.d.ts +5 -0
- package/dist/types/components/layout/Backdrop.d.ts +32 -0
- package/dist/types/components/layout/Container.d.ts +6 -0
- package/dist/types/components/layout/Divider.d.ts +5 -0
- package/dist/types/components/layout/Drawer.d.ts +9 -0
- package/dist/types/components/layout/DrawerDockSlot.d.ts +40 -0
- package/dist/types/components/layout/Grid.d.ts +8 -0
- package/dist/types/components/layout/Modal.d.ts +25 -0
- package/dist/types/components/layout/Page.d.ts +11 -0
- package/dist/types/components/layout/Section.d.ts +6 -0
- package/dist/types/components/layout/Stack.d.ts +7 -0
- package/dist/types/components/marketing/AnnouncementBar.d.ts +15 -0
- package/dist/types/components/marketing/BrandStory.d.ts +19 -0
- package/dist/types/components/marketing/HeroBanner.d.ts +69 -0
- package/dist/types/components/marketing/HeroBannerFeatures.d.ts +10 -0
- package/dist/types/components/marketing/HeroBannerInline.d.ts +20 -0
- package/dist/types/components/marketing/PromoBanner.d.ts +11 -0
- package/dist/types/components/marketing/internal/AnnouncementLink.d.ts +5 -0
- package/dist/types/components/marketing/internal/AnnouncementMessage.d.ts +10 -0
- package/dist/types/components/navigation/Breadcrumbs.d.ts +10 -0
- package/dist/types/components/navigation/Footer.d.ts +15 -0
- package/dist/types/components/navigation/Header.d.ts +14 -0
- package/dist/types/components/navigation/internal/BreadcrumbLink.d.ts +5 -0
- package/dist/types/components/navigation/internal/FooterLink.d.ts +5 -0
- package/dist/types/components/navigation/internal/HeaderLink.d.ts +5 -0
- package/dist/types/components/shell/BaseMark.d.ts +11 -0
- package/dist/types/components/shell/CartPill.d.ts +13 -0
- package/dist/types/components/shell/ComposerDock.d.ts +9 -0
- package/dist/types/components/shell/ErrorBanner.d.ts +14 -0
- package/dist/types/components/shell/HistoryMenu.d.ts +15 -0
- package/dist/types/components/shell/MenuButton.d.ts +31 -0
- package/dist/types/components/shell/MountainRidges.d.ts +11 -0
- package/dist/types/components/shell/PendingTurn.d.ts +1 -0
- package/dist/types/components/shell/ShellTop.d.ts +35 -0
- package/dist/types/components/shell/brand-shell.d.ts +441 -0
- package/dist/types/components/shell/index.d.ts +9 -0
- package/dist/types/components/shell/marks/index.d.ts +5 -0
- package/dist/types/components/social/ReviewCard.d.ts +9 -0
- package/dist/types/components/social/ReviewSummary.d.ts +7 -0
- package/dist/types/components/social/TestimonialCard.d.ts +9 -0
- package/dist/types/components/social/TestimonialCarousel.d.ts +16 -0
- package/dist/types/components/social/UgcCard.d.ts +9 -0
- package/dist/types/components/social/UgcGallery.d.ts +8 -0
- package/dist/types/hooks/index.d.ts +8 -0
- package/dist/types/hooks/keyboard.d.ts +18 -0
- package/dist/types/hooks/use-container-width.d.ts +11 -0
- package/dist/types/hooks/use-dismiss-on-outside.d.ts +23 -0
- package/dist/types/hooks/use-focus-on-change.d.ts +8 -0
- package/dist/types/hooks/use-focus-trap.d.ts +12 -0
- package/dist/types/hooks/use-media-query.d.ts +12 -0
- package/dist/types/hooks/use-projection.d.ts +24 -0
- package/dist/types/hooks/use-reduced-motion.d.ts +1 -0
- package/dist/types/hooks/use-scroll-lock.d.ts +19 -0
- package/dist/types/hooks/use-scroll-threshold.d.ts +14 -0
- package/dist/types/hooks/use-textarea-autosize.d.ts +16 -0
- package/dist/types/index.d.ts +74 -0
- package/dist/types/labels-context.d.ts +18 -0
- package/dist/types/labels.d.ts +240 -0
- package/dist/types/motion/ease.d.ts +10 -0
- package/dist/types/motion/generation/ActiveBlockIndicator.d.ts +27 -0
- package/dist/types/motion/generation/BlurUpImage.d.ts +23 -0
- package/dist/types/motion/generation/ResolveEntrance.d.ts +22 -0
- package/dist/types/motion/generation/ShimmerSkeleton.d.ts +20 -0
- package/dist/types/motion/generation/WordReveal.d.ts +26 -0
- package/dist/types/motion/generation/index.d.ts +6 -0
- package/dist/types/motion/hooks/useInViewOnce.d.ts +14 -0
- package/dist/types/motion/hooks/useScrollDirection.d.ts +38 -0
- package/dist/types/motion/hooks/useScrollProgress.d.ts +23 -0
- package/dist/types/motion/hooks/useStableValue.d.ts +36 -0
- package/dist/types/motion/hooks/useSuccessFlash.d.ts +1 -0
- package/dist/types/motion/index.d.ts +18 -0
- package/dist/types/motion/presets.d.ts +335 -0
- package/dist/types/motion/primitives/Agent.d.ts +118 -0
- package/dist/types/motion/primitives/MorphRegion.d.ts +16 -0
- package/dist/types/motion/primitives/Parallax.d.ts +19 -0
- package/dist/types/motion/primitives/Pin.d.ts +26 -0
- package/dist/types/motion/primitives/Reveal.d.ts +29 -0
- package/dist/types/motion/primitives/RevealStagger.d.ts +16 -0
- package/dist/types/motion/primitives/StickyShelf.d.ts +18 -0
- package/dist/types/primitives/Badge/index.d.ts +12 -0
- package/dist/types/primitives/Button/index.d.ts +25 -0
- package/dist/types/primitives/Input/index.d.ts +5 -0
- package/dist/types/primitives/Money/index.d.ts +13 -0
- package/dist/types/primitives/Select/index.d.ts +5 -0
- package/dist/types/primitives/Skeleton/index.d.ts +4 -0
- package/dist/types/shell/AnimatedPlaceholder.d.ts +13 -0
- package/dist/types/shell/BottomSheet.d.ts +54 -0
- package/dist/types/shell/Button.d.ts +19 -0
- package/dist/types/shell/ChromeSurface.d.ts +33 -0
- package/dist/types/shell/Composer.d.ts +56 -0
- package/dist/types/shell/ComposerChipStrip.d.ts +9 -0
- package/dist/types/shell/ConversationTransition.d.ts +27 -0
- package/dist/types/shell/DictationButton.d.ts +24 -0
- package/dist/types/shell/DragSheet.d.ts +34 -0
- package/dist/types/shell/InlineCompletion.d.ts +38 -0
- package/dist/types/shell/LauncherDock.d.ts +40 -0
- package/dist/types/shell/ListeningWaveform.d.ts +18 -0
- package/dist/types/shell/MenuAccordionPanel.d.ts +26 -0
- package/dist/types/shell/MenuDrawer.d.ts +72 -0
- package/dist/types/shell/MenuFlyout.d.ts +22 -0
- package/dist/types/shell/MenuNav.d.ts +30 -0
- package/dist/types/shell/MenuNavBar.d.ts +22 -0
- package/dist/types/shell/ShellMenuChrome.d.ts +66 -0
- package/dist/types/shell/ShellScaffold.d.ts +92 -0
- package/dist/types/shell/SideDock.d.ts +75 -0
- package/dist/types/shell/Skeleton.d.ts +22 -0
- package/dist/types/shell/Spinner.d.ts +10 -0
- package/dist/types/shell/TypedPlaceholder.d.ts +11 -0
- package/dist/types/shell/VoiceControl.d.ts +23 -0
- package/dist/types/shell/VoiceIsland.d.ts +24 -0
- package/dist/types/shell/canvas-gutter-style.d.ts +15 -0
- package/dist/types/shell/composer/AttachButton.d.ts +14 -0
- package/dist/types/shell/composer/AttachmentStrip.d.ts +12 -0
- package/dist/types/shell/composer/ClearSessionButton.d.ts +16 -0
- package/dist/types/shell/composer/ConversationHistoryButton.d.ts +25 -0
- package/dist/types/shell/composer/ShareCanvasButton.d.ts +19 -0
- package/dist/types/shell/composer/ThreadJumpRail.d.ts +43 -0
- package/dist/types/shell/composer/composer-metrics.d.ts +6 -0
- package/dist/types/shell/composer/field-metrics.d.ts +97 -0
- package/dist/types/shell/composer/heic-convert.d.ts +6 -0
- package/dist/types/shell/composer/use-field-autosize.d.ts +26 -0
- package/dist/types/shell/composer/useComposerAttachments.d.ts +37 -0
- package/dist/types/shell/composer/usePromptComposer.d.ts +51 -0
- package/dist/types/shell/dock-context.d.ts +10 -0
- package/dist/types/shell/index.d.ts +36 -0
- package/dist/types/shell/menu-columns.d.ts +19 -0
- package/dist/types/shell/mobile/DefaultMobileShell.d.ts +88 -0
- package/dist/types/shell/mobile/IslandComposeGroup.d.ts +41 -0
- package/dist/types/shell/mobile/IslandInputBar.d.ts +61 -0
- package/dist/types/shell/mobile/IslandNavButtons.d.ts +20 -0
- package/dist/types/shell/mobile/IslandTrailingAction.d.ts +34 -0
- package/dist/types/shell/mobile/MobileChrome.d.ts +34 -0
- package/dist/types/shell/mobile/MobileVoiceConsole.d.ts +42 -0
- package/dist/types/shell/mobile/MorphIsland.d.ts +105 -0
- package/dist/types/shell/mobile/RestIsland.d.ts +41 -0
- package/dist/types/shell/mobile/constants.d.ts +26 -0
- package/dist/types/shell/mobile/document-scroll-ref.d.ts +22 -0
- package/dist/types/shell/mobile/hero-entry-point.d.ts +110 -0
- package/dist/types/shell/mobile/island-metrics.d.ts +131 -0
- package/dist/types/shell/mobile/sheet-detents.d.ts +49 -0
- package/dist/types/shell/mobile/turn-end-action.d.ts +44 -0
- package/dist/types/shell/mobile/use-blur-on-canvas-gesture.d.ts +31 -0
- package/dist/types/shell/mobile/use-island-fold-scroll.d.ts +28 -0
- package/dist/types/shell/mobile/use-keyboard-inset.d.ts +18 -0
- package/dist/types/shell/mobile/use-sheet-fold-gesture.d.ts +57 -0
- package/dist/types/shell/slots.d.ts +16 -0
- package/dist/types/shell/thread-reland.d.ts +22 -0
- package/dist/types/shell/use-dock-state.d.ts +54 -0
- package/dist/types/types/commerce.d.ts +1 -0
- package/dist/types/utils/cn.d.ts +2 -0
- package/dist/types/utils/format-money.d.ts +2 -0
- package/dist/types/utils/html-to-text.d.ts +8 -0
- package/dist/types/utils/sanitize-html.d.ts +12 -0
- package/dist/types/utils/use-backdrop-presence.d.ts +24 -0
- package/dist/types/utils/use-composer-mode.d.ts +26 -0
- package/dist/types/utils/use-is-seed-home.d.ts +13 -0
- package/dist/types/utils/use-safe-cart.d.ts +17 -0
- package/dist/types/utils/use-safe-facts.d.ts +9 -0
- package/dist/types/utils/use-safe-fourty-session.d.ts +15 -0
- package/package.json +80 -0
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
@fourty/ui — the mobile MORPH ISLAND (platform infra).
|
|
3
|
+
|
|
4
|
+
ONE bottom island is the whole input surface (no separate draggable sheet).
|
|
5
|
+
It morphs continuously island ⇄ full conversation sheet as its grip is dragged
|
|
6
|
+
(see MorphIsland / MobileVoiceConsole). These rules are GENERIC + tokenized:
|
|
7
|
+
every colour / radius / casing derives from the brand's tokens, so a brand
|
|
8
|
+
re-skins the whole surface (square dark vs rounded navy) purely through its
|
|
9
|
+
`tokens.css`. Skinnable knobs (with their neutral defaults):
|
|
10
|
+
• --fourty-island-surface (--color-primary) — the slab's own fill
|
|
11
|
+
• --fourty-island-fg (--color-on-dark) — everything riding on it
|
|
12
|
+
• --fourty-island-radius (0px) — slab / fab corner
|
|
13
|
+
• --fourty-island-shadow (dark) — slab lift (set in TSX)
|
|
14
|
+
• --fourty-island-edge (none) — hairline boundary, at EVERY fold state;
|
|
15
|
+
what a light-on-light island separates
|
|
16
|
+
itself with (set in TSX)
|
|
17
|
+
• --fourty-island-collapsed-radius (half the pill's height, i.e. fully
|
|
18
|
+
round) — the corner the island wears
|
|
19
|
+
once it has condensed to its pill
|
|
20
|
+
• --fourty-island-collapsed-surface / --fourty-island-collapsed-fg
|
|
21
|
+
(the slab's own pair) — what the pill
|
|
22
|
+
is painted in, for a brand whose slab
|
|
23
|
+
is too close to its page to read at
|
|
24
|
+
pill size; Babysense inverts here
|
|
25
|
+
• --fourty-island-scrim (#121212) — canvas dim behind the sheet (TSX)
|
|
26
|
+
Loaded via `@fourty/ui/motion.css`, so every brand pulling it gets the island.
|
|
27
|
+
============================================================================ */
|
|
28
|
+
|
|
29
|
+
.fourty-island-rest {
|
|
30
|
+
font-family: var(--font-display);
|
|
31
|
+
transition: box-shadow 160ms ease;
|
|
32
|
+
/* The read riding the slab derives every hue from this one token; the slab is
|
|
33
|
+
dark, so its foreground is on-dark — same contract as the desktop notch. */
|
|
34
|
+
--fourty-notch-fg: var(--fourty-island-fg, var(--color-on-dark));
|
|
35
|
+
}
|
|
36
|
+
.fourty-island-rest:hover {
|
|
37
|
+
box-shadow: 0 14px 36px rgba(18, 18, 18, 0.34);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* The COLLAPSED island — the resting slab condensed to a small pill while the
|
|
41
|
+
visitor reads. Everything that makes it a pill (width, height, radius, the
|
|
42
|
+
glyph's fade) is driven by `MorphIsland`'s one `foldT` value, because it all
|
|
43
|
+
has to travel on the same curve as the surface it belongs to; what is left
|
|
44
|
+
for CSS is the press feedback. Same ink slab, same on-dark glyph as the bar
|
|
45
|
+
— the fold reads as the one surface condensed, not as a different control
|
|
46
|
+
appearing. */
|
|
47
|
+
.fourty-morph-surface[data-folded='true'] {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* The morph grip — the drag handle that owns the island⇄sheet morph. Sits at the
|
|
52
|
+
top of the surface; a neutral bar so it reads on BOTH the ink island (low
|
|
53
|
+
progress) and the surface sheet (high progress) as the surface lightens. */
|
|
54
|
+
.fourty-morph-grip {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
/* Centred — where a drag handle belongs, and where every bottom sheet the
|
|
58
|
+
visitor already knows puts one. */
|
|
59
|
+
justify-content: center;
|
|
60
|
+
/* 8 + 5 + 8 = 21px — kept in lockstep with `ISLAND_GRIP_H`, which several
|
|
61
|
+
surfaces reserve against and which shows up as a jump the moment it
|
|
62
|
+
disagrees with what this renders.
|
|
63
|
+
|
|
64
|
+
SYMMETRIC, where the old box leaned upward (4 above, 2 below). That lean
|
|
65
|
+
made sense while the chevron only ever pointed up; now that it turns over
|
|
66
|
+
at full, a lean would favour one state and crowd the other — the mark
|
|
67
|
+
would sit tight against the sheet's top edge in exactly the state where it
|
|
68
|
+
is the only way out. Equal room reads the same whichever way it points. */
|
|
69
|
+
padding-top: 8px;
|
|
70
|
+
padding-bottom: 8px;
|
|
71
|
+
cursor: grab;
|
|
72
|
+
}
|
|
73
|
+
.fourty-morph-grip:active {
|
|
74
|
+
cursor: grabbing;
|
|
75
|
+
}
|
|
76
|
+
/* The grip's mark: a very shallow chevron pointing UP, replacing the flat grey
|
|
77
|
+
strip that sat here.
|
|
78
|
+
|
|
79
|
+
The strip was direction-blind. This handle's whole job is "drag me up to
|
|
80
|
+
open the conversation" (its tap does the same, and its downward drag is the
|
|
81
|
+
sheet's dismissal), and a symmetric bar says only "something is draggable"
|
|
82
|
+
— it points nowhere, so the one thing the visitor needs to know is the one
|
|
83
|
+
thing it withholds.
|
|
84
|
+
|
|
85
|
+
SUPER SHALLOW — 32 wide against 4 of rise, about a 14° pitch. Deep enough to
|
|
86
|
+
read as an arrow at a glance, shallow enough to still read as a handle
|
|
87
|
+
spanning the surface rather than a button sitting on it. A steeper chevron
|
|
88
|
+
at this width turns into a "v" icon and starts competing with the island's
|
|
89
|
+
own controls for attention.
|
|
90
|
+
|
|
91
|
+
`stroke` on a `polyline`, with round caps and joins, so the mark keeps an
|
|
92
|
+
even weight and soft ends at any scale — the same visual weight as the 3px
|
|
93
|
+
bar it replaces. `currentColor` inherits the token colour set below, so a
|
|
94
|
+
brand re-skins it through `--color-text` like everything else. */
|
|
95
|
+
.fourty-morph-grip__arrow {
|
|
96
|
+
display: block;
|
|
97
|
+
width: 32px;
|
|
98
|
+
height: 5px;
|
|
99
|
+
overflow: visible;
|
|
100
|
+
/* The brand's secondary-text colour, not a mix: 42% of --color-text into a
|
|
101
|
+
white surface came out #9fa2a1 on Peak Design (2.57:1, under the 3:1 a
|
|
102
|
+
control's glyph needs). --color-text-muted is the token every brand sets
|
|
103
|
+
for legible secondary text. */
|
|
104
|
+
color: var(--color-text-muted);
|
|
105
|
+
/* The flip is the only thing that moves here, and it moves on the same beat
|
|
106
|
+
as the sheet's final climb (see the corner radius, which squares off across
|
|
107
|
+
that same leg) rather than snapping at a threshold. */
|
|
108
|
+
transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* THE WAY BACK. Fully expanded, the sheet owns the screen: the canvas is gone,
|
|
112
|
+
the scrim is over what is left, and the only exit is a downward drag on this
|
|
113
|
+
handle — a gesture with nothing on screen to suggest it. An up-chevron there
|
|
114
|
+
is worse than no mark at all, because it points at the one direction the
|
|
115
|
+
surface cannot go.
|
|
116
|
+
|
|
117
|
+
So the chevron turns over and points DOWN, at the exact moment the sheet
|
|
118
|
+
becomes modal. Same mark, same handle, rotated: the visitor reads it as the
|
|
119
|
+
thing they dragged up, now offering to come back, rather than as a second
|
|
120
|
+
control appearing. The grip's `aria-label` already flips with it ("Open the
|
|
121
|
+
conversation" ⇄ "Close the conversation"), so the two agree. */
|
|
122
|
+
.fourty-morph-grip[data-expanded='true'] .fourty-morph-grip__arrow {
|
|
123
|
+
transform: rotate(180deg);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* The inline input on the resting bar — fully transparent (no boxed fill or
|
|
127
|
+
border), so the island reads as one ink slab and the field isn't a nested chip.
|
|
128
|
+
The voice-waves glyph sits OUTSIDE the field, on the left, as the voice switch. */
|
|
129
|
+
.fourty-island-input {
|
|
130
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
131
|
+
/* The island face allows `pan-x` (so the chip rail scrolls), which otherwise
|
|
132
|
+
lets the browser tug a diagonal drag-to-open sideways before framer's pan
|
|
133
|
+
recognizer sees it. `none` hands the whole pointer stream to the open
|
|
134
|
+
gesture.
|
|
135
|
+
|
|
136
|
+
Safe even though the field now wraps and can scroll internally at its line
|
|
137
|
+
cap: `touch-action` governs the BROWSER's direct-manipulation gestures, and
|
|
138
|
+
a focused textarea still scrolls with the caret as the visitor types or
|
|
139
|
+
selects, which is how a five-line draft is actually navigated here. */
|
|
140
|
+
touch-action: none;
|
|
141
|
+
}
|
|
142
|
+
/* The draft wraps (see `IslandComposeGroup`) — the PLACEHOLDER must not.
|
|
143
|
+
|
|
144
|
+
The field is one line tall when empty, and a brand's resting nudge is a full
|
|
145
|
+
sentence ("Ask about grills, bundles, delivery…" is 36 characters, which
|
|
146
|
+
wraps at the ~265px the field gets on a 390px phone). Wrapped, its second
|
|
147
|
+
line rendered inside a one-line box and was cut in half — a clipped fragment
|
|
148
|
+
of a prompt sitting in the island at rest, on every space.
|
|
149
|
+
|
|
150
|
+
Growing the empty field to fit the placeholder instead would be worse: the
|
|
151
|
+
island would stand two lines tall before anything had been typed, and the
|
|
152
|
+
resting bar's height is what the whole shell reserves its canvas clearance
|
|
153
|
+
against.
|
|
154
|
+
|
|
155
|
+
So the placeholder keeps the single-line treatment the field itself used to
|
|
156
|
+
have, and ellipsizes rather than hard-cutting. This also keeps the autosize
|
|
157
|
+
pass honest: it sizes from `scrollHeight`, which a wrapping placeholder
|
|
158
|
+
inflates, so without this an EMPTY field would measure two lines tall. */
|
|
159
|
+
/* The ROTATING placeholder overlay (see `IslandComposeGroup`) — same skin as
|
|
160
|
+
the native `::placeholder` below, because it stands in for it. Both rules
|
|
161
|
+
read the one foreground token, so a brand re-skinning the island moves them
|
|
162
|
+
together. The single-line treatment matters for the same reason it does
|
|
163
|
+
below: the empty field is one line tall and a brand's examples are full
|
|
164
|
+
sentences. */
|
|
165
|
+
.fourty-island-placeholder {
|
|
166
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
167
|
+
color: color-mix(in srgb, var(--fourty-island-fg, var(--color-on-dark)) 52%, transparent);
|
|
168
|
+
}
|
|
169
|
+
.fourty-island-input::placeholder {
|
|
170
|
+
color: color-mix(in srgb, var(--fourty-island-fg, var(--color-on-dark)) 52%, transparent);
|
|
171
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
text-overflow: ellipsis;
|
|
175
|
+
}
|
|
176
|
+
.fourty-island-voice {
|
|
177
|
+
color: var(--fourty-island-fg, var(--color-on-dark));
|
|
178
|
+
transition: transform 140ms ease;
|
|
179
|
+
}
|
|
180
|
+
.fourty-island-voice:active {
|
|
181
|
+
transform: scale(0.9);
|
|
182
|
+
}
|
|
183
|
+
/* The trailing stamp — ONE slot, two glyphs (the send arrow at rest, the stop
|
|
184
|
+
square while a turn streams), so both wear the SAME skin. Shape comes from
|
|
185
|
+
`--fourty-chat-send-radius`, the brand's single declaration for how a send
|
|
186
|
+
stamp is shaped ANYWHERE — this island bar, the side composer, the brand's
|
|
187
|
+
own hero field. Square when a brand says nothing (SM's shape anyway). The
|
|
188
|
+
stop used to be left out of this rule and read as a stray hard square
|
|
189
|
+
mid-stream on a rounded brand — a circle-with-a-square is the same stamp,
|
|
190
|
+
one glyph later. */
|
|
191
|
+
.fourty-island-send,
|
|
192
|
+
.fourty-island-stop {
|
|
193
|
+
transition: opacity 140ms ease, transform 140ms ease;
|
|
194
|
+
border-radius: var(--fourty-chat-send-radius, 0px);
|
|
195
|
+
}
|
|
196
|
+
.fourty-island-send:active,
|
|
197
|
+
.fourty-island-stop:active {
|
|
198
|
+
transform: scale(0.94);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* Agent follow-up chips rail on the island — dark-skinned outline chips (on-dark
|
|
202
|
+
text/border on the ink slab; hover/tap fills). One scrolling line. */
|
|
203
|
+
.fourty-island-chips {
|
|
204
|
+
--fourty-chip-bg: var(--fourty-island-surface, var(--color-primary));
|
|
205
|
+
--fourty-chip-fg: var(--fourty-island-fg, var(--color-on-dark));
|
|
206
|
+
--fourty-chip-border: color-mix(in srgb, var(--fourty-island-fg, var(--color-on-dark)) 40%, transparent);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* Persistent knowledge (dossier) chips — a separate row from the scanning
|
|
210
|
+
presence, on-dark, one scrolling line. */
|
|
211
|
+
.fourty-island-dossier {
|
|
212
|
+
padding: 4px 16px 8px;
|
|
213
|
+
}
|
|
214
|
+
/* …and NOTHING at all when the agent knows nothing yet.
|
|
215
|
+
`PresenceBriefRail` returns null until it holds a fact, but its wrapper is
|
|
216
|
+
mounted whenever the island is at rest — so this padding was 12px of empty
|
|
217
|
+
ink above the input on every fresh session, which is the band of dead space
|
|
218
|
+
the island reads as. RestIsland's own comment already promises the rail
|
|
219
|
+
"costs no height at all until the agent knows something"; this is what makes
|
|
220
|
+
that true. `:empty` rather than a second render condition in JS, because the
|
|
221
|
+
wrapper is an animation host (`AnimatePresence`) whose mount/unmount is
|
|
222
|
+
already decided by focus and streaming — adding "…and does the child have
|
|
223
|
+
facts?" would put the same question in two places and let them disagree. */
|
|
224
|
+
.fourty-island-dossier:empty {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* The streaming presence notch on the island — a tap-to-expand read region.
|
|
229
|
+
The outer shell owns the tap; the inner `__read` is the scroll region, so
|
|
230
|
+
the edge fades stay put while the read scrolls beneath them. */
|
|
231
|
+
.fourty-island-notch {
|
|
232
|
+
position: relative;
|
|
233
|
+
}
|
|
234
|
+
/* Collapsed: TWO wrapped lines, fading out along the bottom edge as a "more
|
|
235
|
+
here" cue instead of a hard cut.
|
|
236
|
+
|
|
237
|
+
It used to be one line masked at the RIGHT edge, which meant a streaming
|
|
238
|
+
answer was clipped mid-phrase a few words in. On a phone this island is the
|
|
239
|
+
whole conversation surface until the sheet is dragged up, so one line made
|
|
240
|
+
the reply unreadable without opening something — and the visitor has just
|
|
241
|
+
sent a question and put the keyboard away precisely to read it. Two lines
|
|
242
|
+
carry a real first sentence.
|
|
243
|
+
|
|
244
|
+
`-webkit-line-clamp` (with its `-webkit-box` display) rather than a
|
|
245
|
+
`max-height`: the clamp cuts on the LINE, so the second line is either fully
|
|
246
|
+
shown or not shown at all. A height in px would slice whichever line
|
|
247
|
+
happened to straddle it, leaving a band of half-glyphs under the fade. The
|
|
248
|
+
`line-clamp` longhand ships alongside for engines that have moved off the
|
|
249
|
+
prefixed box. */
|
|
250
|
+
.fourty-island-notch__read {
|
|
251
|
+
display: -webkit-box;
|
|
252
|
+
-webkit-box-orient: vertical;
|
|
253
|
+
-webkit-line-clamp: 2;
|
|
254
|
+
line-clamp: 2;
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
|
|
257
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 12px), transparent);
|
|
258
|
+
}
|
|
259
|
+
.fourty-island-notch[data-expanded='true'] .fourty-island-notch__read {
|
|
260
|
+
/* Expanded: the full read (prose + chips wrap) is bounded and scrolls, with a
|
|
261
|
+
BOTTOM mask-fade so the clipped edge reads as "scroll for more". `mask` fades
|
|
262
|
+
the content itself, so it needs no slab-colour match. The clamp is lifted
|
|
263
|
+
back to normal flow — `-webkit-box` cannot scroll, and an unclamped block
|
|
264
|
+
is what lets the full read wrap. */
|
|
265
|
+
display: block;
|
|
266
|
+
-webkit-line-clamp: none;
|
|
267
|
+
line-clamp: none;
|
|
268
|
+
max-height: 260px;
|
|
269
|
+
overflow-y: auto;
|
|
270
|
+
overscroll-behavior: contain;
|
|
271
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
|
|
272
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Attachment thumbnails staged on the resting island — aligned to the same
|
|
276
|
+
gutter as the chip rail and the input row above/below it. */
|
|
277
|
+
.fourty-island-rest .fourty-composer-attachments {
|
|
278
|
+
padding: 4px 16px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.fourty-island-open-sheet {
|
|
282
|
+
transition: color 140ms ease, opacity 140ms ease;
|
|
283
|
+
opacity: 0.82;
|
|
284
|
+
}
|
|
285
|
+
.fourty-island-open-sheet:hover {
|
|
286
|
+
opacity: 1;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/* Every scroller INSIDE the morph surface (the brand's thread history, the
|
|
290
|
+
composer, any nested list) contains its overscroll: an at-top downward pull
|
|
291
|
+
must never chain out to the document — Safari turns that chain into
|
|
292
|
+
pull-to-refresh and reloads the space mid-conversation. The sheet's own
|
|
293
|
+
drag-to-fold (MorphIsland's sheet-face pan) owns that gesture instead. */
|
|
294
|
+
.fourty-morph-surface * {
|
|
295
|
+
overscroll-behavior: contain;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* The nacre paint, switched by the fold.
|
|
299
|
+
`url(#fourty-island-nacre)` must match `NACRE_PAINT_ID` in `MorphIsland` —
|
|
300
|
+
the pair lives in two files and is asserted in `__tests__/island-compose`,
|
|
301
|
+
because a silent rename here degrades to a mark that is simply always white
|
|
302
|
+
and nobody would notice for months. */
|
|
303
|
+
.fourty-island-collapsed {
|
|
304
|
+
--fourty-island-collapsed-paint: currentColor;
|
|
305
|
+
}
|
|
306
|
+
.fourty-island-collapsed[data-folded='true'] {
|
|
307
|
+
--fourty-island-collapsed-paint: url(#fourty-island-nacre);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* The collapsed mark takes the surface's paint, not its own.
|
|
311
|
+
|
|
312
|
+
A brand's mark draws itself with `currentColor`; this repoints it at
|
|
313
|
+
whatever `--fourty-island-collapsed-paint` currently holds — the nacre
|
|
314
|
+
gradient while the pill is down, plain `currentColor` otherwise (MorphIsland
|
|
315
|
+
sets it per state). CSS beats a presentation attribute, so this reaches a
|
|
316
|
+
brand mark that hard-codes `stroke="currentColor"` without the brand having
|
|
317
|
+
to know the property exists.
|
|
318
|
+
|
|
319
|
+
STROKE only. Marks on this surface are stroked on a 24-unit box at 1.75, and
|
|
320
|
+
repainting `fill` as well would flood a mark that uses it for a counter or a
|
|
321
|
+
dot. A brand wanting a filled mark to catch the sweep opts in itself. */
|
|
322
|
+
.fourty-island-collapsed svg {
|
|
323
|
+
stroke: var(--fourty-island-collapsed-paint, currentColor);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* THE AURA — the same light, OUTSIDE the pill, as a shimmering shadow.
|
|
327
|
+
|
|
328
|
+
The mark's nacre sweep (MorphIsland's `NacreDefs`) and this are meant to read
|
|
329
|
+
as ONE light over ONE object, so this carries the same palette, the same 10s
|
|
330
|
+
period and the same 2s crossing (20% of the cycle, as the keyframe's hold
|
|
331
|
+
makes explicit).
|
|
332
|
+
|
|
333
|
+
A SIBLING OF THE SURFACE, not a pseudo-element on it. The surface is
|
|
334
|
+
`overflow: hidden` — it has to be, to clip its faces through the morph — so
|
|
335
|
+
anything drawn on it can never reach past its own edge. This tracks the
|
|
336
|
+
pill's box from outside (MorphIsland gives it the same margins, bottom, y,
|
|
337
|
+
height and radius), then blurs and scales fractionally out of it, so what
|
|
338
|
+
shows is only the fringe: a coloured shadow that travels.
|
|
339
|
+
|
|
340
|
+
It was a RIM first, drawn on a masked 1px border. That worked, and it was
|
|
341
|
+
the wrong thing — light on the boundary reads as an outline being drawn,
|
|
342
|
+
where light around the boundary reads as the object glowing.
|
|
343
|
+
|
|
344
|
+
THE ANIMATION IS NEVER GATED, only its opacity. Both this and the mark's SMIL
|
|
345
|
+
timeline start when their element mounts, so leaving this one running keeps
|
|
346
|
+
the two in phase; starting it on the fold would restart it every collapse and
|
|
347
|
+
the aura would cross at a different moment from the mark. */
|
|
348
|
+
.fourty-island-aura {
|
|
349
|
+
pointer-events: none;
|
|
350
|
+
/* Soft shoulders: the fades run about a third of the ramp each side, so there
|
|
351
|
+
is no frame where you can point at where the glow begins or ends.
|
|
352
|
+
|
|
353
|
+
INTENSITY, NOT SPREAD. Making the glow read more was first attempted by
|
|
354
|
+
widening it — more blur, more scale — which produced a bigger, equally pale
|
|
355
|
+
cloud. It is the FILL that reads, so the stops are saturated rather than
|
|
356
|
+
pastel. Spread stays modest and the plate is drawn ONCE: a doubled plate
|
|
357
|
+
was tried and is denser than this surface wants, as well as the most
|
|
358
|
+
expensive thing on it to repaint. */
|
|
359
|
+
background-image: linear-gradient(
|
|
360
|
+
100deg,
|
|
361
|
+
transparent 0%,
|
|
362
|
+
transparent 8%,
|
|
363
|
+
color-mix(in srgb, #FF8FC8 22%, transparent) 20%,
|
|
364
|
+
color-mix(in srgb, #FF8FC8 67%, transparent) 31%,
|
|
365
|
+
color-mix(in srgb, #FFD27A 78%, transparent) 40%,
|
|
366
|
+
color-mix(in srgb, #35E8C8 84%, transparent) 50%,
|
|
367
|
+
color-mix(in srgb, #7B95FF 78%, transparent) 60%,
|
|
368
|
+
color-mix(in srgb, #C99BFF 64%, transparent) 70%,
|
|
369
|
+
color-mix(in srgb, #C99BFF 21%, transparent) 82%,
|
|
370
|
+
transparent 92%,
|
|
371
|
+
transparent 100%
|
|
372
|
+
);
|
|
373
|
+
background-size: 200% 100%;
|
|
374
|
+
/* PARKED OFF THE ELEMENT. A percentage `background-position` offsets by
|
|
375
|
+
P% x (W - background-width), so at `background-size: 200%` the offset is
|
|
376
|
+
-P%xW and the coloured span (8%-92% of the image) lands at
|
|
377
|
+
[-P%xW + 0.16W, -P%xW + 1.84W]. At the 150%/-50% this used to park at,
|
|
378
|
+
that span still overlapped [0, W] by a third at one end and a third at the
|
|
379
|
+
other — so the glow was ALWAYS partly lit, which is exactly how it reads on
|
|
380
|
+
a device: constantly coloured rather than sweeping. 200% clears it to the
|
|
381
|
+
left, -100% clears it to the right. Both ends are now genuinely white. */
|
|
382
|
+
background-position: 200% 0;
|
|
383
|
+
background-repeat: no-repeat;
|
|
384
|
+
/* Blur to make it a shadow; the fractional scale is what pushes the fringe
|
|
385
|
+
past the pill's own edge so it is visible at all. Deliberately modest —
|
|
386
|
+
see the note on intensity above. */
|
|
387
|
+
filter: blur(7px);
|
|
388
|
+
transform: scale(1.06);
|
|
389
|
+
opacity: 0;
|
|
390
|
+
transition: opacity 260ms ease;
|
|
391
|
+
animation: fourty-island-aura 10s linear infinite;
|
|
392
|
+
}
|
|
393
|
+
.fourty-island-aura[data-folded='true'] {
|
|
394
|
+
opacity: 1;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/* 20% of the cycle is the crossing; the rest is the band parked off the right
|
|
398
|
+
edge, costing nothing — the same 2s-in-10s the mark's sweep runs. */
|
|
399
|
+
@keyframes fourty-island-aura {
|
|
400
|
+
0% { background-position: 200% 0; }
|
|
401
|
+
20% { background-position: -100% 0; }
|
|
402
|
+
100% { background-position: -100% 0; }
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* THE RING — a hairline of the same light, sitting just proud of the pill.
|
|
406
|
+
|
|
407
|
+
The aura alone is all bloom and no edge, and a glow with no boundary reads
|
|
408
|
+
as a smudge behind the control rather than as light coming off it. This is
|
|
409
|
+
the crisp counterpart: 1px, unblurred, 2px outside the pill's own edge.
|
|
410
|
+
|
|
411
|
+
Its OWN layer rather than a border on the aura, because the aura is blurred
|
|
412
|
+
and a border on a blurred element blurs with it. Drawn with the border-mask
|
|
413
|
+
trick so the hairline follows the radius around the pill's ends instead of
|
|
414
|
+
stopping at a corner, and carried at a higher alpha than the glow — a single
|
|
415
|
+
pixel needs the colour to read at all. */
|
|
416
|
+
.fourty-island-ring {
|
|
417
|
+
pointer-events: none;
|
|
418
|
+
border: 1px solid transparent;
|
|
419
|
+
background-image: linear-gradient(
|
|
420
|
+
100deg,
|
|
421
|
+
transparent 0%,
|
|
422
|
+
transparent 8%,
|
|
423
|
+
color-mix(in srgb, #FF8FC8 29%, transparent) 20%,
|
|
424
|
+
color-mix(in srgb, #FF8FC8 87%, transparent) 31%,
|
|
425
|
+
#FFD27A 40%,
|
|
426
|
+
#35E8C8 50%,
|
|
427
|
+
#7B95FF 60%,
|
|
428
|
+
color-mix(in srgb, #C99BFF 84%, transparent) 70%,
|
|
429
|
+
color-mix(in srgb, #C99BFF 27%, transparent) 82%,
|
|
430
|
+
transparent 92%,
|
|
431
|
+
transparent 100%
|
|
432
|
+
);
|
|
433
|
+
background-size: 200% 100%;
|
|
434
|
+
/* Parked clear of the element — see the aura's note above. */
|
|
435
|
+
background-position: 200% 0;
|
|
436
|
+
background-repeat: no-repeat;
|
|
437
|
+
background-origin: border-box;
|
|
438
|
+
background-clip: border-box;
|
|
439
|
+
-webkit-mask:
|
|
440
|
+
linear-gradient(#000 0 0) padding-box,
|
|
441
|
+
linear-gradient(#000 0 0) border-box;
|
|
442
|
+
-webkit-mask-composite: xor;
|
|
443
|
+
mask:
|
|
444
|
+
linear-gradient(#000 0 0) padding-box,
|
|
445
|
+
linear-gradient(#000 0 0) border-box;
|
|
446
|
+
mask-composite: exclude;
|
|
447
|
+
opacity: 0;
|
|
448
|
+
transition: opacity 260ms ease;
|
|
449
|
+
animation: fourty-island-ring 10s linear infinite;
|
|
450
|
+
}
|
|
451
|
+
.fourty-island-ring[data-folded='true'] {
|
|
452
|
+
opacity: 1;
|
|
453
|
+
}
|
|
454
|
+
@keyframes fourty-island-ring {
|
|
455
|
+
0% { background-position: 200% 0; }
|
|
456
|
+
20% { background-position: -100% 0; }
|
|
457
|
+
100% { background-position: -100% 0; }
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
@media (prefers-reduced-motion: reduce) {
|
|
461
|
+
.fourty-island-aura,
|
|
462
|
+
.fourty-island-ring { animation: none; opacity: 0; }
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* NO BORDER SHEEN OF THE OLD KIND. A light used to sweep the folded island's top edge once every ten
|
|
466
|
+
seconds, because the 10px sliver the fold left behind was a hairline on a
|
|
467
|
+
light brand and effectively unfindable. That animation was a symptom, not a
|
|
468
|
+
feature: a control that has to flash to be noticed is one the visitor cannot
|
|
469
|
+
see. The pill is a real object at a real size carrying the slab's full lift,
|
|
470
|
+
so it is found by looking — and a light running around a permanently visible
|
|
471
|
+
surface would read as a notification, which is exactly what that rule
|
|
472
|
+
already said about the upright bar.
|
|
473
|
+
|
|
474
|
+
What the pill DOES carry is a mother-of-pearl band that crosses its mark once
|
|
475
|
+
every ten seconds — see `MorphIsland`'s `NacreDefs`. The distinction is not a
|
|
476
|
+
hair-split: that one ran on the SURFACE, to make an invisible sliver findable,
|
|
477
|
+
and this one runs on the MARK of a surface nobody has trouble finding. One was
|
|
478
|
+
a crutch; the other is the thing having a little life in it. */
|
package/dist/hooks.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
activateOnSpaceEnter,
|
|
4
|
+
submitOnEnter,
|
|
5
|
+
useDismissOnOutside,
|
|
6
|
+
useFocusOnChange,
|
|
7
|
+
useScrollThreshold,
|
|
8
|
+
useTextareaAutosize
|
|
9
|
+
} from "./chunk-ORIOBWTD.js";
|
|
10
|
+
import {
|
|
11
|
+
useContainerWidth,
|
|
12
|
+
useFocusTrap,
|
|
13
|
+
useProjection
|
|
14
|
+
} from "./chunk-MHUEIBJ3.js";
|
|
15
|
+
export {
|
|
16
|
+
activateOnSpaceEnter,
|
|
17
|
+
submitOnEnter,
|
|
18
|
+
useContainerWidth,
|
|
19
|
+
useDismissOnOutside,
|
|
20
|
+
useFocusOnChange,
|
|
21
|
+
useFocusTrap,
|
|
22
|
+
useProjection,
|
|
23
|
+
useScrollThreshold,
|
|
24
|
+
useTextareaAutosize
|
|
25
|
+
};
|