@oxy.so/bloom-language 0.0.0-bootstrap.0 → 1.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/LICENSE +673 -0
- package/codemod/classnames.generated.json +12145 -0
- package/lib/commonjs/binding.js +39 -0
- package/lib/commonjs/binding.js.map +1 -0
- package/lib/commonjs/chrome/command-host.js +72 -0
- package/lib/commonjs/chrome/command-host.js.map +1 -0
- package/lib/commonjs/chrome/defined.js +20 -0
- package/lib/commonjs/chrome/defined.js.map +1 -0
- package/lib/commonjs/chrome/layout-hosts.js +181 -0
- package/lib/commonjs/chrome/layout-hosts.js.map +1 -0
- package/lib/commonjs/chrome/page-footer-host.js +36 -0
- package/lib/commonjs/chrome/page-footer-host.js.map +1 -0
- package/lib/commonjs/chrome/rail-host.js +55 -0
- package/lib/commonjs/chrome/rail-host.js.map +1 -0
- package/lib/commonjs/chrome/safe-area-inset.js +125 -0
- package/lib/commonjs/chrome/safe-area-inset.js.map +1 -0
- package/lib/commonjs/chrome/scroll-view-host.js +183 -0
- package/lib/commonjs/chrome/scroll-view-host.js.map +1 -0
- package/lib/commonjs/chrome/settings-host.js +84 -0
- package/lib/commonjs/chrome/settings-host.js.map +1 -0
- package/lib/commonjs/chrome/sidebar-host.js +227 -0
- package/lib/commonjs/chrome/sidebar-host.js.map +1 -0
- package/lib/commonjs/controls/accordion.js +80 -0
- package/lib/commonjs/controls/accordion.js.map +1 -0
- package/lib/commonjs/controls/activity-feed.js +33 -0
- package/lib/commonjs/controls/activity-feed.js.map +1 -0
- package/lib/commonjs/controls/activity-heatmap.js +46 -0
- package/lib/commonjs/controls/activity-heatmap.js.map +1 -0
- package/lib/commonjs/controls/address.js +58 -0
- package/lib/commonjs/controls/address.js.map +1 -0
- package/lib/commonjs/controls/agent-avatar.js +46 -0
- package/lib/commonjs/controls/agent-avatar.js.map +1 -0
- package/lib/commonjs/controls/agent-chat.js +62 -0
- package/lib/commonjs/controls/agent-chat.js.map +1 -0
- package/lib/commonjs/controls/agent-creator.js +59 -0
- package/lib/commonjs/controls/agent-creator.js.map +1 -0
- package/lib/commonjs/controls/agent-reply.js +69 -0
- package/lib/commonjs/controls/agent-reply.js.map +1 -0
- package/lib/commonjs/controls/agents.js +257 -0
- package/lib/commonjs/controls/agents.js.map +1 -0
- package/lib/commonjs/controls/ai-chat.js +173 -0
- package/lib/commonjs/controls/ai-chat.js.map +1 -0
- package/lib/commonjs/controls/ai-profile-card.js +40 -0
- package/lib/commonjs/controls/ai-profile-card.js.map +1 -0
- package/lib/commonjs/controls/ambient-photo.js +35 -0
- package/lib/commonjs/controls/ambient-photo.js.map +1 -0
- package/lib/commonjs/controls/animated-check.js +55 -0
- package/lib/commonjs/controls/animated-check.js.map +1 -0
- package/lib/commonjs/controls/avatar-flight.js +47 -0
- package/lib/commonjs/controls/avatar-flight.js.map +1 -0
- package/lib/commonjs/controls/booking.js +78 -0
- package/lib/commonjs/controls/booking.js.map +1 -0
- package/lib/commonjs/controls/breadcrumb.js +57 -0
- package/lib/commonjs/controls/breadcrumb.js.map +1 -0
- package/lib/commonjs/controls/calendar.js +80 -0
- package/lib/commonjs/controls/calendar.js.map +1 -0
- package/lib/commonjs/controls/call-ui.js +185 -0
- package/lib/commonjs/controls/call-ui.js.map +1 -0
- package/lib/commonjs/controls/card-form.js +99 -0
- package/lib/commonjs/controls/card-form.js.map +1 -0
- package/lib/commonjs/controls/carousel.js +90 -0
- package/lib/commonjs/controls/carousel.js.map +1 -0
- package/lib/commonjs/controls/cart-panel.js +113 -0
- package/lib/commonjs/controls/cart-panel.js.map +1 -0
- package/lib/commonjs/controls/category-bar.js +55 -0
- package/lib/commonjs/controls/category-bar.js.map +1 -0
- package/lib/commonjs/controls/chart-cards.js +247 -0
- package/lib/commonjs/controls/chart-cards.js.map +1 -0
- package/lib/commonjs/controls/chat-composer.js +208 -0
- package/lib/commonjs/controls/chat-composer.js.map +1 -0
- package/lib/commonjs/controls/chat-people.js +77 -0
- package/lib/commonjs/controls/chat-people.js.map +1 -0
- package/lib/commonjs/controls/chat.js +388 -0
- package/lib/commonjs/controls/chat.js.map +1 -0
- package/lib/commonjs/controls/checkout-sheet.js +35 -0
- package/lib/commonjs/controls/checkout-sheet.js.map +1 -0
- package/lib/commonjs/controls/checkout-summary.js +67 -0
- package/lib/commonjs/controls/checkout-summary.js.map +1 -0
- package/lib/commonjs/controls/choice-list.js +96 -0
- package/lib/commonjs/controls/choice-list.js.map +1 -0
- package/lib/commonjs/controls/code.js +100 -0
- package/lib/commonjs/controls/code.js.map +1 -0
- package/lib/commonjs/controls/collapsible.js +37 -0
- package/lib/commonjs/controls/collapsible.js.map +1 -0
- package/lib/commonjs/controls/color-swatch-picker.js +47 -0
- package/lib/commonjs/controls/color-swatch-picker.js.map +1 -0
- package/lib/commonjs/controls/composer-panel.js +79 -0
- package/lib/commonjs/controls/composer-panel.js.map +1 -0
- package/lib/commonjs/controls/composition-bar.js +72 -0
- package/lib/commonjs/controls/composition-bar.js.map +1 -0
- package/lib/commonjs/controls/confirmation-dialog.js +41 -0
- package/lib/commonjs/controls/confirmation-dialog.js.map +1 -0
- package/lib/commonjs/controls/containers.js +616 -0
- package/lib/commonjs/controls/containers.js.map +1 -0
- package/lib/commonjs/controls/context-menu.js +93 -0
- package/lib/commonjs/controls/context-menu.js.map +1 -0
- package/lib/commonjs/controls/creator-studio.js +213 -0
- package/lib/commonjs/controls/creator-studio.js.map +1 -0
- package/lib/commonjs/controls/crm.js +99 -0
- package/lib/commonjs/controls/crm.js.map +1 -0
- package/lib/commonjs/controls/dashboard-cards.js +65 -0
- package/lib/commonjs/controls/dashboard-cards.js.map +1 -0
- package/lib/commonjs/controls/data-table.js +196 -0
- package/lib/commonjs/controls/data-table.js.map +1 -0
- package/lib/commonjs/controls/date-picker.js +168 -0
- package/lib/commonjs/controls/date-picker.js.map +1 -0
- package/lib/commonjs/controls/delivery-slot.js +83 -0
- package/lib/commonjs/controls/delivery-slot.js.map +1 -0
- package/lib/commonjs/controls/draw.js +74 -0
- package/lib/commonjs/controls/draw.js.map +1 -0
- package/lib/commonjs/controls/drop-zone.js +46 -0
- package/lib/commonjs/controls/drop-zone.js.map +1 -0
- package/lib/commonjs/controls/eviction.js +50 -0
- package/lib/commonjs/controls/eviction.js.map +1 -0
- package/lib/commonjs/controls/expandable-text.js +54 -0
- package/lib/commonjs/controls/expandable-text.js.map +1 -0
- package/lib/commonjs/controls/fact-strip.js +61 -0
- package/lib/commonjs/controls/fact-strip.js.map +1 -0
- package/lib/commonjs/controls/file-upload.js +38 -0
- package/lib/commonjs/controls/file-upload.js.map +1 -0
- package/lib/commonjs/controls/generic.js +164 -0
- package/lib/commonjs/controls/generic.js.map +1 -0
- package/lib/commonjs/controls/glass-group.js +42 -0
- package/lib/commonjs/controls/glass-group.js.map +1 -0
- package/lib/commonjs/controls/home-search.js +78 -0
- package/lib/commonjs/controls/home-search.js.map +1 -0
- package/lib/commonjs/controls/hover-card.js +52 -0
- package/lib/commonjs/controls/hover-card.js.map +1 -0
- package/lib/commonjs/controls/index.js +256 -0
- package/lib/commonjs/controls/index.js.map +1 -0
- package/lib/commonjs/controls/input-group.js +53 -0
- package/lib/commonjs/controls/input-group.js.map +1 -0
- package/lib/commonjs/controls/input-otp.js +38 -0
- package/lib/commonjs/controls/input-otp.js.map +1 -0
- package/lib/commonjs/controls/inputs.js +599 -0
- package/lib/commonjs/controls/inputs.js.map +1 -0
- package/lib/commonjs/controls/link-preview.js +31 -0
- package/lib/commonjs/controls/link-preview.js.map +1 -0
- package/lib/commonjs/controls/list.js +281 -0
- package/lib/commonjs/controls/list.js.map +1 -0
- package/lib/commonjs/controls/listing-actions.js +89 -0
- package/lib/commonjs/controls/listing-actions.js.map +1 -0
- package/lib/commonjs/controls/listing-card.js +69 -0
- package/lib/commonjs/controls/listing-card.js.map +1 -0
- package/lib/commonjs/controls/listing-editor.js +67 -0
- package/lib/commonjs/controls/listing-editor.js.map +1 -0
- package/lib/commonjs/controls/listings.js +132 -0
- package/lib/commonjs/controls/listings.js.map +1 -0
- package/lib/commonjs/controls/lockup.js +56 -0
- package/lib/commonjs/controls/lockup.js.map +1 -0
- package/lib/commonjs/controls/logistics.js +231 -0
- package/lib/commonjs/controls/logistics.js.map +1 -0
- package/lib/commonjs/controls/lyrics.js +49 -0
- package/lib/commonjs/controls/lyrics.js.map +1 -0
- package/lib/commonjs/controls/mail.js +133 -0
- package/lib/commonjs/controls/mail.js.map +1 -0
- package/lib/commonjs/controls/map-chrome.js +84 -0
- package/lib/commonjs/controls/map-chrome.js.map +1 -0
- package/lib/commonjs/controls/markdown.js +74 -0
- package/lib/commonjs/controls/markdown.js.map +1 -0
- package/lib/commonjs/controls/media-cards.js +224 -0
- package/lib/commonjs/controls/media-cards.js.map +1 -0
- package/lib/commonjs/controls/media-controls.js +60 -0
- package/lib/commonjs/controls/media-controls.js.map +1 -0
- package/lib/commonjs/controls/media-flight.js +92 -0
- package/lib/commonjs/controls/media-flight.js.map +1 -0
- package/lib/commonjs/controls/media-inset-border.js +47 -0
- package/lib/commonjs/controls/media-inset-border.js.map +1 -0
- package/lib/commonjs/controls/media-player.js +185 -0
- package/lib/commonjs/controls/media-player.js.map +1 -0
- package/lib/commonjs/controls/media.js +103 -0
- package/lib/commonjs/controls/media.js.map +1 -0
- package/lib/commonjs/controls/menu-item.js +66 -0
- package/lib/commonjs/controls/menu-item.js.map +1 -0
- package/lib/commonjs/controls/menubar.js +96 -0
- package/lib/commonjs/controls/menubar.js.map +1 -0
- package/lib/commonjs/controls/message-bubble.js +83 -0
- package/lib/commonjs/controls/message-bubble.js.map +1 -0
- package/lib/commonjs/controls/multi-agent-chat.js +44 -0
- package/lib/commonjs/controls/multi-agent-chat.js.map +1 -0
- package/lib/commonjs/controls/music-library.js +129 -0
- package/lib/commonjs/controls/music-library.js.map +1 -0
- package/lib/commonjs/controls/note-card.js +51 -0
- package/lib/commonjs/controls/note-card.js.map +1 -0
- package/lib/commonjs/controls/notification.js +57 -0
- package/lib/commonjs/controls/notification.js.map +1 -0
- package/lib/commonjs/controls/offering-badge.js +32 -0
- package/lib/commonjs/controls/offering-badge.js.map +1 -0
- package/lib/commonjs/controls/order-confirmation.js +35 -0
- package/lib/commonjs/controls/order-confirmation.js.map +1 -0
- package/lib/commonjs/controls/order-status.js +51 -0
- package/lib/commonjs/controls/order-status.js.map +1 -0
- package/lib/commonjs/controls/overlays.js +214 -0
- package/lib/commonjs/controls/overlays.js.map +1 -0
- package/lib/commonjs/controls/payment-method.js +68 -0
- package/lib/commonjs/controls/payment-method.js.map +1 -0
- package/lib/commonjs/controls/payment-status.js +49 -0
- package/lib/commonjs/controls/payment-status.js.map +1 -0
- package/lib/commonjs/controls/phone-input.js +52 -0
- package/lib/commonjs/controls/phone-input.js.map +1 -0
- package/lib/commonjs/controls/place-reviews.js +38 -0
- package/lib/commonjs/controls/place-reviews.js.map +1 -0
- package/lib/commonjs/controls/places.js +157 -0
- package/lib/commonjs/controls/places.js.map +1 -0
- package/lib/commonjs/controls/price-breakdown.js +45 -0
- package/lib/commonjs/controls/price-breakdown.js.map +1 -0
- package/lib/commonjs/controls/product.js +105 -0
- package/lib/commonjs/controls/product.js.map +1 -0
- package/lib/commonjs/controls/project-board.js +89 -0
- package/lib/commonjs/controls/project-board.js.map +1 -0
- package/lib/commonjs/controls/property-insights.js +43 -0
- package/lib/commonjs/controls/property-insights.js.map +1 -0
- package/lib/commonjs/controls/queue-panel.js +58 -0
- package/lib/commonjs/controls/queue-panel.js.map +1 -0
- package/lib/commonjs/controls/rating.js +126 -0
- package/lib/commonjs/controls/rating.js.map +1 -0
- package/lib/commonjs/controls/route-stops.js +34 -0
- package/lib/commonjs/controls/route-stops.js.map +1 -0
- package/lib/commonjs/controls/settings.js +162 -0
- package/lib/commonjs/controls/settings.js.map +1 -0
- package/lib/commonjs/controls/share-sheet.js +47 -0
- package/lib/commonjs/controls/share-sheet.js.map +1 -0
- package/lib/commonjs/controls/slider.js +77 -0
- package/lib/commonjs/controls/slider.js.map +1 -0
- package/lib/commonjs/controls/social-button.js +52 -0
- package/lib/commonjs/controls/social-button.js.map +1 -0
- package/lib/commonjs/controls/sortable-chip-row.js +58 -0
- package/lib/commonjs/controls/sortable-chip-row.js.map +1 -0
- package/lib/commonjs/controls/sortable-media.js +40 -0
- package/lib/commonjs/controls/sortable-media.js.map +1 -0
- package/lib/commonjs/controls/spinner-icon.js +31 -0
- package/lib/commonjs/controls/spinner-icon.js.map +1 -0
- package/lib/commonjs/controls/stat-bar.js +161 -0
- package/lib/commonjs/controls/stat-bar.js.map +1 -0
- package/lib/commonjs/controls/stat-cards.js +43 -0
- package/lib/commonjs/controls/stat-cards.js.map +1 -0
- package/lib/commonjs/controls/stay-filters.js +208 -0
- package/lib/commonjs/controls/stay-filters.js.map +1 -0
- package/lib/commonjs/controls/stay-search.js +83 -0
- package/lib/commonjs/controls/stay-search.js.map +1 -0
- package/lib/commonjs/controls/stepper.js +65 -0
- package/lib/commonjs/controls/stepper.js.map +1 -0
- package/lib/commonjs/controls/table.js +109 -0
- package/lib/commonjs/controls/table.js.map +1 -0
- package/lib/commonjs/controls/tag-field.js +50 -0
- package/lib/commonjs/controls/tag-field.js.map +1 -0
- package/lib/commonjs/controls/task-list.js +29 -0
- package/lib/commonjs/controls/task-list.js.map +1 -0
- package/lib/commonjs/controls/tenancy.js +87 -0
- package/lib/commonjs/controls/tenancy.js.map +1 -0
- package/lib/commonjs/controls/toolbar-group.js +51 -0
- package/lib/commonjs/controls/toolbar-group.js.map +1 -0
- package/lib/commonjs/controls/tooltip.js +54 -0
- package/lib/commonjs/controls/tooltip.js.map +1 -0
- package/lib/commonjs/controls/track-list.js +170 -0
- package/lib/commonjs/controls/track-list.js.map +1 -0
- package/lib/commonjs/controls/vendor-card.js +38 -0
- package/lib/commonjs/controls/vendor-card.js.map +1 -0
- package/lib/commonjs/controls/video-playback.js +65 -0
- package/lib/commonjs/controls/video-playback.js.map +1 -0
- package/lib/commonjs/controls/video-view.js +32 -0
- package/lib/commonjs/controls/video-view.js.map +1 -0
- package/lib/commonjs/controls/view-that-fits.js +102 -0
- package/lib/commonjs/controls/view-that-fits.js.map +1 -0
- package/lib/commonjs/controls/viewport.js +29 -0
- package/lib/commonjs/controls/viewport.js.map +1 -0
- package/lib/commonjs/controls/voice.js +40 -0
- package/lib/commonjs/controls/voice.js.map +1 -0
- package/lib/commonjs/controls/web-search.js +29 -0
- package/lib/commonjs/controls/web-search.js.map +1 -0
- package/lib/commonjs/controls/zoomable-media-gallery.js +111 -0
- package/lib/commonjs/controls/zoomable-media-gallery.js.map +1 -0
- package/lib/commonjs/depth-stack.js +111 -0
- package/lib/commonjs/depth-stack.js.map +1 -0
- package/lib/commonjs/env.js +151 -0
- package/lib/commonjs/env.js.map +1 -0
- package/lib/commonjs/environment.js +100 -0
- package/lib/commonjs/environment.js.map +1 -0
- package/lib/commonjs/generated/sf-symbols.generated.js +115 -0
- package/lib/commonjs/generated/sf-symbols.generated.js.map +1 -0
- package/lib/commonjs/generated/spec.generated.js +3 -0
- package/lib/commonjs/generated/spec.generated.js.map +1 -0
- package/lib/commonjs/generated/web-sheet.generated.js +3390 -0
- package/lib/commonjs/generated/web-sheet.generated.js.map +1 -0
- package/lib/commonjs/glass.js +87 -0
- package/lib/commonjs/glass.js.map +1 -0
- package/lib/commonjs/index.js +3465 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/modifier.js +40 -0
- package/lib/commonjs/modifier.js.map +1 -0
- package/lib/commonjs/motion/keyframes.js +75 -0
- package/lib/commonjs/motion/keyframes.js.map +1 -0
- package/lib/commonjs/motion/motion-node.js +559 -0
- package/lib/commonjs/motion/motion-node.js.map +1 -0
- package/lib/commonjs/motion/namespace.js +42 -0
- package/lib/commonjs/motion/namespace.js.map +1 -0
- package/lib/commonjs/motion/phases.js +78 -0
- package/lib/commonjs/motion/phases.js.map +1 -0
- package/lib/commonjs/motion/text-roll.js +217 -0
- package/lib/commonjs/motion/text-roll.js.map +1 -0
- package/lib/commonjs/motion/tokens.js +75 -0
- package/lib/commonjs/motion/tokens.js.map +1 -0
- package/lib/commonjs/motion/tracks.js +125 -0
- package/lib/commonjs/motion/tracks.js.map +1 -0
- package/lib/commonjs/motion/transition.js +47 -0
- package/lib/commonjs/motion/transition.js.map +1 -0
- package/lib/commonjs/motion/values.js +79 -0
- package/lib/commonjs/motion/values.js.map +1 -0
- package/lib/commonjs/node.js +2922 -0
- package/lib/commonjs/node.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/paint.js +304 -0
- package/lib/commonjs/paint.js.map +1 -0
- package/lib/commonjs/painted-host.js +53 -0
- package/lib/commonjs/painted-host.js.map +1 -0
- package/lib/commonjs/platform/bottom-bar-host.js +68 -0
- package/lib/commonjs/platform/bottom-bar-host.js.map +1 -0
- package/lib/commonjs/platform/confirmation-host.android.js +129 -0
- package/lib/commonjs/platform/confirmation-host.android.js.map +1 -0
- package/lib/commonjs/platform/confirmation-host.ios.js +97 -0
- package/lib/commonjs/platform/confirmation-host.ios.js.map +1 -0
- package/lib/commonjs/platform/confirmation-host.web.js +62 -0
- package/lib/commonjs/platform/confirmation-host.web.js.map +1 -0
- package/lib/commonjs/platform/glass-group-host.android.js +54 -0
- package/lib/commonjs/platform/glass-group-host.android.js.map +1 -0
- package/lib/commonjs/platform/glass-group-host.ios.js +167 -0
- package/lib/commonjs/platform/glass-group-host.ios.js.map +1 -0
- package/lib/commonjs/platform/glass-group-host.types.js +6 -0
- package/lib/commonjs/platform/glass-group-host.types.js.map +1 -0
- package/lib/commonjs/platform/glass-group-host.web.js +20 -0
- package/lib/commonjs/platform/glass-group-host.web.js.map +1 -0
- package/lib/commonjs/platform/glass-host.android.js +72 -0
- package/lib/commonjs/platform/glass-host.android.js.map +1 -0
- package/lib/commonjs/platform/glass-host.ios.js +110 -0
- package/lib/commonjs/platform/glass-host.ios.js.map +1 -0
- package/lib/commonjs/platform/glass-host.types.js +6 -0
- package/lib/commonjs/platform/glass-host.types.js.map +1 -0
- package/lib/commonjs/platform/glass-host.web.js +15 -0
- package/lib/commonjs/platform/glass-host.web.js.map +1 -0
- package/lib/commonjs/platform/header-host.ios.js +223 -0
- package/lib/commonjs/platform/header-host.ios.js.map +1 -0
- package/lib/commonjs/platform/header-host.js +13 -0
- package/lib/commonjs/platform/header-host.js.map +1 -0
- package/lib/commonjs/platform/header-page.js +105 -0
- package/lib/commonjs/platform/header-page.js.map +1 -0
- package/lib/commonjs/platform/host.types.js +6 -0
- package/lib/commonjs/platform/host.types.js.map +1 -0
- package/lib/commonjs/platform/lens-glass.js +29 -0
- package/lib/commonjs/platform/lens-glass.js.map +1 -0
- package/lib/commonjs/platform/lens-group.js +89 -0
- package/lib/commonjs/platform/lens-group.js.map +1 -0
- package/lib/commonjs/platform/lens.js +52 -0
- package/lib/commonjs/platform/lens.js.map +1 -0
- package/lib/commonjs/platform/menu-actions.js +81 -0
- package/lib/commonjs/platform/menu-actions.js.map +1 -0
- package/lib/commonjs/platform/menu-dropdown.js +158 -0
- package/lib/commonjs/platform/menu-dropdown.js.map +1 -0
- package/lib/commonjs/platform/menu-host.android.js +221 -0
- package/lib/commonjs/platform/menu-host.android.js.map +1 -0
- package/lib/commonjs/platform/menu-host.ios.js +136 -0
- package/lib/commonjs/platform/menu-host.ios.js.map +1 -0
- package/lib/commonjs/platform/menu-host.web.js +13 -0
- package/lib/commonjs/platform/menu-host.web.js.map +1 -0
- package/lib/commonjs/platform/menu-rows.js +175 -0
- package/lib/commonjs/platform/menu-rows.js.map +1 -0
- package/lib/commonjs/platform/sf-symbol.ios.js +16 -0
- package/lib/commonjs/platform/sf-symbol.ios.js.map +1 -0
- package/lib/commonjs/platform/values.js +25 -0
- package/lib/commonjs/platform/values.js.map +1 -0
- package/lib/commonjs/primitives.js +600 -0
- package/lib/commonjs/primitives.js.map +1 -0
- package/lib/commonjs/render.js +2863 -0
- package/lib/commonjs/render.js.map +1 -0
- package/lib/commonjs/router/app-layout.js +102 -0
- package/lib/commonjs/router/app-layout.js.map +1 -0
- package/lib/commonjs/router/bar.ios.js +18 -0
- package/lib/commonjs/router/bar.ios.js.map +1 -0
- package/lib/commonjs/router/bar.js +39 -0
- package/lib/commonjs/router/bar.js.map +1 -0
- package/lib/commonjs/router/components.js +91 -0
- package/lib/commonjs/router/components.js.map +1 -0
- package/lib/commonjs/router/index.js +62 -0
- package/lib/commonjs/router/index.js.map +1 -0
- package/lib/commonjs/router/navigators.js +31 -0
- package/lib/commonjs/router/navigators.js.map +1 -0
- package/lib/commonjs/router/nodes.js +122 -0
- package/lib/commonjs/router/nodes.js.map +1 -0
- package/lib/commonjs/router/pager.js +16 -0
- package/lib/commonjs/router/pager.js.map +1 -0
- package/lib/commonjs/router/primary.js +16 -0
- package/lib/commonjs/router/primary.js.map +1 -0
- package/lib/commonjs/router/routes.js +15 -0
- package/lib/commonjs/router/routes.js.map +1 -0
- package/lib/commonjs/router/screen-header.ios.js +13 -0
- package/lib/commonjs/router/screen-header.ios.js.map +1 -0
- package/lib/commonjs/router/screen-header.js +11 -0
- package/lib/commonjs/router/screen-header.js.map +1 -0
- package/lib/commonjs/router/screen-host.js +127 -0
- package/lib/commonjs/router/screen-host.js.map +1 -0
- package/lib/commonjs/router/sheet-bloom.js +105 -0
- package/lib/commonjs/router/sheet-bloom.js.map +1 -0
- package/lib/commonjs/router/sheet-host.ios.js +120 -0
- package/lib/commonjs/router/sheet-host.ios.js.map +1 -0
- package/lib/commonjs/router/sheet-host.js +13 -0
- package/lib/commonjs/router/sheet-host.js.map +1 -0
- package/lib/commonjs/router/shell-panels.js +86 -0
- package/lib/commonjs/router/shell-panels.js.map +1 -0
- package/lib/commonjs/router/stack.ios.js +38 -0
- package/lib/commonjs/router/stack.ios.js.map +1 -0
- package/lib/commonjs/router/stack.js +41 -0
- package/lib/commonjs/router/stack.js.map +1 -0
- package/lib/commonjs/router/stack.web.js +20 -0
- package/lib/commonjs/router/stack.web.js.map +1 -0
- package/lib/commonjs/router/tabs.ios.js +53 -0
- package/lib/commonjs/router/tabs.ios.js.map +1 -0
- package/lib/commonjs/router/tabs.js +23 -0
- package/lib/commonjs/router/tabs.js.map +1 -0
- package/lib/commonjs/state-host.js +179 -0
- package/lib/commonjs/state-host.js.map +1 -0
- package/lib/commonjs/style.js +1003 -0
- package/lib/commonjs/style.js.map +1 -0
- package/lib/commonjs/toast.js +39 -0
- package/lib/commonjs/toast.js.map +1 -0
- package/lib/commonjs/tokens.js +496 -0
- package/lib/commonjs/tokens.js.map +1 -0
- package/lib/commonjs/variants.js +107 -0
- package/lib/commonjs/variants.js.map +1 -0
- package/lib/commonjs/view.js +55 -0
- package/lib/commonjs/view.js.map +1 -0
- package/lib/commonjs/web-sheet.js +225 -0
- package/lib/commonjs/web-sheet.js.map +1 -0
- package/lib/module/binding.js +35 -0
- package/lib/module/binding.js.map +1 -0
- package/lib/module/chrome/command-host.js +67 -0
- package/lib/module/chrome/command-host.js.map +1 -0
- package/lib/module/chrome/defined.js +16 -0
- package/lib/module/chrome/defined.js.map +1 -0
- package/lib/module/chrome/layout-hosts.js +172 -0
- package/lib/module/chrome/layout-hosts.js.map +1 -0
- package/lib/module/chrome/page-footer-host.js +32 -0
- package/lib/module/chrome/page-footer-host.js.map +1 -0
- package/lib/module/chrome/rail-host.js +50 -0
- package/lib/module/chrome/rail-host.js.map +1 -0
- package/lib/module/chrome/safe-area-inset.js +118 -0
- package/lib/module/chrome/safe-area-inset.js.map +1 -0
- package/lib/module/chrome/scroll-view-host.js +177 -0
- package/lib/module/chrome/scroll-view-host.js.map +1 -0
- package/lib/module/chrome/settings-host.js +79 -0
- package/lib/module/chrome/settings-host.js.map +1 -0
- package/lib/module/chrome/sidebar-host.js +221 -0
- package/lib/module/chrome/sidebar-host.js.map +1 -0
- package/lib/module/controls/accordion.js +73 -0
- package/lib/module/controls/accordion.js.map +1 -0
- package/lib/module/controls/activity-feed.js +29 -0
- package/lib/module/controls/activity-feed.js.map +1 -0
- package/lib/module/controls/activity-heatmap.js +42 -0
- package/lib/module/controls/activity-heatmap.js.map +1 -0
- package/lib/module/controls/address.js +53 -0
- package/lib/module/controls/address.js.map +1 -0
- package/lib/module/controls/agent-avatar.js +42 -0
- package/lib/module/controls/agent-avatar.js.map +1 -0
- package/lib/module/controls/agent-chat.js +57 -0
- package/lib/module/controls/agent-chat.js.map +1 -0
- package/lib/module/controls/agent-creator.js +53 -0
- package/lib/module/controls/agent-creator.js.map +1 -0
- package/lib/module/controls/agent-reply.js +64 -0
- package/lib/module/controls/agent-reply.js.map +1 -0
- package/lib/module/controls/agents.js +241 -0
- package/lib/module/controls/agents.js.map +1 -0
- package/lib/module/controls/ai-chat.js +160 -0
- package/lib/module/controls/ai-chat.js.map +1 -0
- package/lib/module/controls/ai-profile-card.js +36 -0
- package/lib/module/controls/ai-profile-card.js.map +1 -0
- package/lib/module/controls/ambient-photo.js +31 -0
- package/lib/module/controls/ambient-photo.js.map +1 -0
- package/lib/module/controls/animated-check.js +50 -0
- package/lib/module/controls/animated-check.js.map +1 -0
- package/lib/module/controls/avatar-flight.js +42 -0
- package/lib/module/controls/avatar-flight.js.map +1 -0
- package/lib/module/controls/booking.js +71 -0
- package/lib/module/controls/booking.js.map +1 -0
- package/lib/module/controls/breadcrumb.js +52 -0
- package/lib/module/controls/breadcrumb.js.map +1 -0
- package/lib/module/controls/calendar.js +74 -0
- package/lib/module/controls/calendar.js.map +1 -0
- package/lib/module/controls/call-ui.js +177 -0
- package/lib/module/controls/call-ui.js.map +1 -0
- package/lib/module/controls/card-form.js +92 -0
- package/lib/module/controls/card-form.js.map +1 -0
- package/lib/module/controls/carousel.js +84 -0
- package/lib/module/controls/carousel.js.map +1 -0
- package/lib/module/controls/cart-panel.js +106 -0
- package/lib/module/controls/cart-panel.js.map +1 -0
- package/lib/module/controls/category-bar.js +51 -0
- package/lib/module/controls/category-bar.js.map +1 -0
- package/lib/module/controls/chart-cards.js +230 -0
- package/lib/module/controls/chart-cards.js.map +1 -0
- package/lib/module/controls/chat-composer.js +195 -0
- package/lib/module/controls/chat-composer.js.map +1 -0
- package/lib/module/controls/chat-people.js +71 -0
- package/lib/module/controls/chat-people.js.map +1 -0
- package/lib/module/controls/chat.js +361 -0
- package/lib/module/controls/chat.js.map +1 -0
- package/lib/module/controls/checkout-sheet.js +31 -0
- package/lib/module/controls/checkout-sheet.js.map +1 -0
- package/lib/module/controls/checkout-summary.js +61 -0
- package/lib/module/controls/checkout-summary.js.map +1 -0
- package/lib/module/controls/choice-list.js +92 -0
- package/lib/module/controls/choice-list.js.map +1 -0
- package/lib/module/controls/code.js +93 -0
- package/lib/module/controls/code.js.map +1 -0
- package/lib/module/controls/collapsible.js +33 -0
- package/lib/module/controls/collapsible.js.map +1 -0
- package/lib/module/controls/color-swatch-picker.js +43 -0
- package/lib/module/controls/color-swatch-picker.js.map +1 -0
- package/lib/module/controls/composer-panel.js +73 -0
- package/lib/module/controls/composer-panel.js.map +1 -0
- package/lib/module/controls/composition-bar.js +67 -0
- package/lib/module/controls/composition-bar.js.map +1 -0
- package/lib/module/controls/confirmation-dialog.js +37 -0
- package/lib/module/controls/confirmation-dialog.js.map +1 -0
- package/lib/module/controls/containers.js +590 -0
- package/lib/module/controls/containers.js.map +1 -0
- package/lib/module/controls/context-menu.js +88 -0
- package/lib/module/controls/context-menu.js.map +1 -0
- package/lib/module/controls/creator-studio.js +195 -0
- package/lib/module/controls/creator-studio.js.map +1 -0
- package/lib/module/controls/crm.js +91 -0
- package/lib/module/controls/crm.js.map +1 -0
- package/lib/module/controls/dashboard-cards.js +59 -0
- package/lib/module/controls/dashboard-cards.js.map +1 -0
- package/lib/module/controls/data-table.js +187 -0
- package/lib/module/controls/data-table.js.map +1 -0
- package/lib/module/controls/date-picker.js +159 -0
- package/lib/module/controls/date-picker.js.map +1 -0
- package/lib/module/controls/delivery-slot.js +77 -0
- package/lib/module/controls/delivery-slot.js.map +1 -0
- package/lib/module/controls/draw.js +68 -0
- package/lib/module/controls/draw.js.map +1 -0
- package/lib/module/controls/drop-zone.js +42 -0
- package/lib/module/controls/drop-zone.js.map +1 -0
- package/lib/module/controls/eviction.js +45 -0
- package/lib/module/controls/eviction.js.map +1 -0
- package/lib/module/controls/expandable-text.js +50 -0
- package/lib/module/controls/expandable-text.js.map +1 -0
- package/lib/module/controls/fact-strip.js +56 -0
- package/lib/module/controls/fact-strip.js.map +1 -0
- package/lib/module/controls/file-upload.js +34 -0
- package/lib/module/controls/file-upload.js.map +1 -0
- package/lib/module/controls/generic.js +153 -0
- package/lib/module/controls/generic.js.map +1 -0
- package/lib/module/controls/glass-group.js +38 -0
- package/lib/module/controls/glass-group.js.map +1 -0
- package/lib/module/controls/home-search.js +71 -0
- package/lib/module/controls/home-search.js.map +1 -0
- package/lib/module/controls/hover-card.js +47 -0
- package/lib/module/controls/hover-card.js.map +1 -0
- package/lib/module/controls/index.js +253 -0
- package/lib/module/controls/index.js.map +1 -0
- package/lib/module/controls/input-group.js +48 -0
- package/lib/module/controls/input-group.js.map +1 -0
- package/lib/module/controls/input-otp.js +34 -0
- package/lib/module/controls/input-otp.js.map +1 -0
- package/lib/module/controls/inputs.js +582 -0
- package/lib/module/controls/inputs.js.map +1 -0
- package/lib/module/controls/link-preview.js +27 -0
- package/lib/module/controls/link-preview.js.map +1 -0
- package/lib/module/controls/list.js +269 -0
- package/lib/module/controls/list.js.map +1 -0
- package/lib/module/controls/listing-actions.js +82 -0
- package/lib/module/controls/listing-actions.js.map +1 -0
- package/lib/module/controls/listing-card.js +63 -0
- package/lib/module/controls/listing-card.js.map +1 -0
- package/lib/module/controls/listing-editor.js +61 -0
- package/lib/module/controls/listing-editor.js.map +1 -0
- package/lib/module/controls/listings.js +120 -0
- package/lib/module/controls/listings.js.map +1 -0
- package/lib/module/controls/lockup.js +51 -0
- package/lib/module/controls/lockup.js.map +1 -0
- package/lib/module/controls/logistics.js +215 -0
- package/lib/module/controls/logistics.js.map +1 -0
- package/lib/module/controls/lyrics.js +44 -0
- package/lib/module/controls/lyrics.js.map +1 -0
- package/lib/module/controls/mail.js +124 -0
- package/lib/module/controls/mail.js.map +1 -0
- package/lib/module/controls/map-chrome.js +77 -0
- package/lib/module/controls/map-chrome.js.map +1 -0
- package/lib/module/controls/markdown.js +69 -0
- package/lib/module/controls/markdown.js.map +1 -0
- package/lib/module/controls/media-cards.js +205 -0
- package/lib/module/controls/media-cards.js.map +1 -0
- package/lib/module/controls/media-controls.js +55 -0
- package/lib/module/controls/media-controls.js.map +1 -0
- package/lib/module/controls/media-flight.js +84 -0
- package/lib/module/controls/media-flight.js.map +1 -0
- package/lib/module/controls/media-inset-border.js +42 -0
- package/lib/module/controls/media-inset-border.js.map +1 -0
- package/lib/module/controls/media-player.js +174 -0
- package/lib/module/controls/media-player.js.map +1 -0
- package/lib/module/controls/media.js +94 -0
- package/lib/module/controls/media.js.map +1 -0
- package/lib/module/controls/menu-item.js +61 -0
- package/lib/module/controls/menu-item.js.map +1 -0
- package/lib/module/controls/menubar.js +90 -0
- package/lib/module/controls/menubar.js.map +1 -0
- package/lib/module/controls/message-bubble.js +77 -0
- package/lib/module/controls/message-bubble.js.map +1 -0
- package/lib/module/controls/multi-agent-chat.js +39 -0
- package/lib/module/controls/multi-agent-chat.js.map +1 -0
- package/lib/module/controls/music-library.js +119 -0
- package/lib/module/controls/music-library.js.map +1 -0
- package/lib/module/controls/note-card.js +46 -0
- package/lib/module/controls/note-card.js.map +1 -0
- package/lib/module/controls/notification.js +53 -0
- package/lib/module/controls/notification.js.map +1 -0
- package/lib/module/controls/offering-badge.js +28 -0
- package/lib/module/controls/offering-badge.js.map +1 -0
- package/lib/module/controls/order-confirmation.js +31 -0
- package/lib/module/controls/order-confirmation.js.map +1 -0
- package/lib/module/controls/order-status.js +46 -0
- package/lib/module/controls/order-status.js.map +1 -0
- package/lib/module/controls/overlays.js +205 -0
- package/lib/module/controls/overlays.js.map +1 -0
- package/lib/module/controls/payment-method.js +62 -0
- package/lib/module/controls/payment-method.js.map +1 -0
- package/lib/module/controls/payment-status.js +44 -0
- package/lib/module/controls/payment-status.js.map +1 -0
- package/lib/module/controls/phone-input.js +48 -0
- package/lib/module/controls/phone-input.js.map +1 -0
- package/lib/module/controls/place-reviews.js +33 -0
- package/lib/module/controls/place-reviews.js.map +1 -0
- package/lib/module/controls/places.js +146 -0
- package/lib/module/controls/places.js.map +1 -0
- package/lib/module/controls/price-breakdown.js +40 -0
- package/lib/module/controls/price-breakdown.js.map +1 -0
- package/lib/module/controls/product.js +98 -0
- package/lib/module/controls/product.js.map +1 -0
- package/lib/module/controls/project-board.js +81 -0
- package/lib/module/controls/project-board.js.map +1 -0
- package/lib/module/controls/property-insights.js +38 -0
- package/lib/module/controls/property-insights.js.map +1 -0
- package/lib/module/controls/queue-panel.js +52 -0
- package/lib/module/controls/queue-panel.js.map +1 -0
- package/lib/module/controls/rating.js +119 -0
- package/lib/module/controls/rating.js.map +1 -0
- package/lib/module/controls/route-stops.js +30 -0
- package/lib/module/controls/route-stops.js.map +1 -0
- package/lib/module/controls/settings.js +153 -0
- package/lib/module/controls/settings.js.map +1 -0
- package/lib/module/controls/share-sheet.js +43 -0
- package/lib/module/controls/share-sheet.js.map +1 -0
- package/lib/module/controls/slider.js +72 -0
- package/lib/module/controls/slider.js.map +1 -0
- package/lib/module/controls/social-button.js +48 -0
- package/lib/module/controls/social-button.js.map +1 -0
- package/lib/module/controls/sortable-chip-row.js +53 -0
- package/lib/module/controls/sortable-chip-row.js.map +1 -0
- package/lib/module/controls/sortable-media.js +36 -0
- package/lib/module/controls/sortable-media.js.map +1 -0
- package/lib/module/controls/spinner-icon.js +27 -0
- package/lib/module/controls/spinner-icon.js.map +1 -0
- package/lib/module/controls/stat-bar.js +155 -0
- package/lib/module/controls/stat-bar.js.map +1 -0
- package/lib/module/controls/stat-cards.js +38 -0
- package/lib/module/controls/stat-cards.js.map +1 -0
- package/lib/module/controls/stay-filters.js +193 -0
- package/lib/module/controls/stay-filters.js.map +1 -0
- package/lib/module/controls/stay-search.js +75 -0
- package/lib/module/controls/stay-search.js.map +1 -0
- package/lib/module/controls/stepper.js +60 -0
- package/lib/module/controls/stepper.js.map +1 -0
- package/lib/module/controls/table.js +100 -0
- package/lib/module/controls/table.js.map +1 -0
- package/lib/module/controls/tag-field.js +46 -0
- package/lib/module/controls/tag-field.js.map +1 -0
- package/lib/module/controls/task-list.js +25 -0
- package/lib/module/controls/task-list.js.map +1 -0
- package/lib/module/controls/tenancy.js +79 -0
- package/lib/module/controls/tenancy.js.map +1 -0
- package/lib/module/controls/toolbar-group.js +46 -0
- package/lib/module/controls/toolbar-group.js.map +1 -0
- package/lib/module/controls/tooltip.js +49 -0
- package/lib/module/controls/tooltip.js.map +1 -0
- package/lib/module/controls/track-list.js +159 -0
- package/lib/module/controls/track-list.js.map +1 -0
- package/lib/module/controls/vendor-card.js +34 -0
- package/lib/module/controls/vendor-card.js.map +1 -0
- package/lib/module/controls/video-playback.js +59 -0
- package/lib/module/controls/video-playback.js.map +1 -0
- package/lib/module/controls/video-view.js +28 -0
- package/lib/module/controls/video-view.js.map +1 -0
- package/lib/module/controls/view-that-fits.js +98 -0
- package/lib/module/controls/view-that-fits.js.map +1 -0
- package/lib/module/controls/viewport.js +25 -0
- package/lib/module/controls/viewport.js.map +1 -0
- package/lib/module/controls/voice.js +36 -0
- package/lib/module/controls/voice.js.map +1 -0
- package/lib/module/controls/web-search.js +25 -0
- package/lib/module/controls/web-search.js.map +1 -0
- package/lib/module/controls/zoomable-media-gallery.js +106 -0
- package/lib/module/controls/zoomable-media-gallery.js.map +1 -0
- package/lib/module/depth-stack.js +107 -0
- package/lib/module/depth-stack.js.map +1 -0
- package/lib/module/env.js +145 -0
- package/lib/module/env.js.map +1 -0
- package/lib/module/environment.js +91 -0
- package/lib/module/environment.js.map +1 -0
- package/lib/module/generated/sf-symbols.generated.js +110 -0
- package/lib/module/generated/sf-symbols.generated.js.map +1 -0
- package/lib/module/generated/spec.generated.js +3 -0
- package/lib/module/generated/spec.generated.js.map +1 -0
- package/lib/module/generated/web-sheet.generated.js +3386 -0
- package/lib/module/generated/web-sheet.generated.js.map +1 -0
- package/lib/module/glass.js +83 -0
- package/lib/module/glass.js.map +1 -0
- package/lib/module/index.js +255 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/modifier.js +34 -0
- package/lib/module/modifier.js.map +1 -0
- package/lib/module/motion/keyframes.js +70 -0
- package/lib/module/motion/keyframes.js.map +1 -0
- package/lib/module/motion/motion-node.js +550 -0
- package/lib/module/motion/motion-node.js.map +1 -0
- package/lib/module/motion/namespace.js +38 -0
- package/lib/module/motion/namespace.js.map +1 -0
- package/lib/module/motion/phases.js +74 -0
- package/lib/module/motion/phases.js.map +1 -0
- package/lib/module/motion/text-roll.js +212 -0
- package/lib/module/motion/text-roll.js.map +1 -0
- package/lib/module/motion/tokens.js +66 -0
- package/lib/module/motion/tokens.js.map +1 -0
- package/lib/module/motion/tracks.js +121 -0
- package/lib/module/motion/tracks.js.map +1 -0
- package/lib/module/motion/transition.js +36 -0
- package/lib/module/motion/transition.js.map +1 -0
- package/lib/module/motion/values.js +68 -0
- package/lib/module/motion/values.js.map +1 -0
- package/lib/module/node.js +2918 -0
- package/lib/module/node.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/paint.js +298 -0
- package/lib/module/paint.js.map +1 -0
- package/lib/module/painted-host.js +49 -0
- package/lib/module/painted-host.js.map +1 -0
- package/lib/module/platform/bottom-bar-host.js +63 -0
- package/lib/module/platform/bottom-bar-host.js.map +1 -0
- package/lib/module/platform/confirmation-host.android.js +124 -0
- package/lib/module/platform/confirmation-host.android.js.map +1 -0
- package/lib/module/platform/confirmation-host.ios.js +93 -0
- package/lib/module/platform/confirmation-host.ios.js.map +1 -0
- package/lib/module/platform/confirmation-host.web.js +59 -0
- package/lib/module/platform/confirmation-host.web.js.map +1 -0
- package/lib/module/platform/glass-group-host.android.js +48 -0
- package/lib/module/platform/glass-group-host.android.js.map +1 -0
- package/lib/module/platform/glass-group-host.ios.js +160 -0
- package/lib/module/platform/glass-group-host.ios.js.map +1 -0
- package/lib/module/platform/glass-group-host.types.js +4 -0
- package/lib/module/platform/glass-group-host.types.js.map +1 -0
- package/lib/module/platform/glass-group-host.web.js +15 -0
- package/lib/module/platform/glass-group-host.web.js.map +1 -0
- package/lib/module/platform/glass-host.android.js +67 -0
- package/lib/module/platform/glass-host.android.js.map +1 -0
- package/lib/module/platform/glass-host.ios.js +106 -0
- package/lib/module/platform/glass-host.ios.js.map +1 -0
- package/lib/module/platform/glass-host.types.js +4 -0
- package/lib/module/platform/glass-host.types.js.map +1 -0
- package/lib/module/platform/glass-host.web.js +11 -0
- package/lib/module/platform/glass-host.web.js.map +1 -0
- package/lib/module/platform/header-host.ios.js +217 -0
- package/lib/module/platform/header-host.ios.js.map +1 -0
- package/lib/module/platform/header-host.js +5 -0
- package/lib/module/platform/header-host.js.map +1 -0
- package/lib/module/platform/header-page.js +100 -0
- package/lib/module/platform/header-page.js.map +1 -0
- package/lib/module/platform/host.types.js +4 -0
- package/lib/module/platform/host.types.js.map +1 -0
- package/lib/module/platform/lens-glass.js +25 -0
- package/lib/module/platform/lens-glass.js.map +1 -0
- package/lib/module/platform/lens-group.js +81 -0
- package/lib/module/platform/lens-group.js.map +1 -0
- package/lib/module/platform/lens.js +49 -0
- package/lib/module/platform/lens.js.map +1 -0
- package/lib/module/platform/menu-actions.js +74 -0
- package/lib/module/platform/menu-actions.js.map +1 -0
- package/lib/module/platform/menu-dropdown.js +151 -0
- package/lib/module/platform/menu-dropdown.js.map +1 -0
- package/lib/module/platform/menu-host.android.js +213 -0
- package/lib/module/platform/menu-host.android.js.map +1 -0
- package/lib/module/platform/menu-host.ios.js +132 -0
- package/lib/module/platform/menu-host.ios.js.map +1 -0
- package/lib/module/platform/menu-host.web.js +5 -0
- package/lib/module/platform/menu-host.web.js.map +1 -0
- package/lib/module/platform/menu-rows.js +165 -0
- package/lib/module/platform/menu-rows.js.map +1 -0
- package/lib/module/platform/sf-symbol.ios.js +11 -0
- package/lib/module/platform/sf-symbol.ios.js.map +1 -0
- package/lib/module/platform/values.js +21 -0
- package/lib/module/platform/values.js.map +1 -0
- package/lib/module/primitives.js +536 -0
- package/lib/module/primitives.js.map +1 -0
- package/lib/module/render.js +2855 -0
- package/lib/module/render.js.map +1 -0
- package/lib/module/router/app-layout.js +97 -0
- package/lib/module/router/app-layout.js.map +1 -0
- package/lib/module/router/bar.ios.js +14 -0
- package/lib/module/router/bar.ios.js.map +1 -0
- package/lib/module/router/bar.js +35 -0
- package/lib/module/router/bar.js.map +1 -0
- package/lib/module/router/components.js +85 -0
- package/lib/module/router/components.js.map +1 -0
- package/lib/module/router/index.js +9 -0
- package/lib/module/router/index.js.map +1 -0
- package/lib/module/router/navigators.js +28 -0
- package/lib/module/router/navigators.js.map +1 -0
- package/lib/module/router/nodes.js +112 -0
- package/lib/module/router/nodes.js.map +1 -0
- package/lib/module/router/pager.js +13 -0
- package/lib/module/router/pager.js.map +1 -0
- package/lib/module/router/primary.js +13 -0
- package/lib/module/router/primary.js.map +1 -0
- package/lib/module/router/routes.js +12 -0
- package/lib/module/router/routes.js.map +1 -0
- package/lib/module/router/screen-header.ios.js +11 -0
- package/lib/module/router/screen-header.ios.js.map +1 -0
- package/lib/module/router/screen-header.js +7 -0
- package/lib/module/router/screen-header.js.map +1 -0
- package/lib/module/router/screen-host.js +123 -0
- package/lib/module/router/screen-host.js.map +1 -0
- package/lib/module/router/sheet-bloom.js +98 -0
- package/lib/module/router/sheet-bloom.js.map +1 -0
- package/lib/module/router/sheet-host.ios.js +115 -0
- package/lib/module/router/sheet-host.ios.js.map +1 -0
- package/lib/module/router/sheet-host.js +5 -0
- package/lib/module/router/sheet-host.js.map +1 -0
- package/lib/module/router/shell-panels.js +81 -0
- package/lib/module/router/shell-panels.js.map +1 -0
- package/lib/module/router/stack.ios.js +33 -0
- package/lib/module/router/stack.ios.js.map +1 -0
- package/lib/module/router/stack.js +36 -0
- package/lib/module/router/stack.js.map +1 -0
- package/lib/module/router/stack.web.js +15 -0
- package/lib/module/router/stack.web.js.map +1 -0
- package/lib/module/router/tabs.ios.js +48 -0
- package/lib/module/router/tabs.ios.js.map +1 -0
- package/lib/module/router/tabs.js +18 -0
- package/lib/module/router/tabs.js.map +1 -0
- package/lib/module/state-host.js +174 -0
- package/lib/module/state-host.js.map +1 -0
- package/lib/module/style.js +971 -0
- package/lib/module/style.js.map +1 -0
- package/lib/module/toast.js +36 -0
- package/lib/module/toast.js.map +1 -0
- package/lib/module/tokens.js +409 -0
- package/lib/module/tokens.js.map +1 -0
- package/lib/module/variants.js +98 -0
- package/lib/module/variants.js.map +1 -0
- package/lib/module/view.js +51 -0
- package/lib/module/view.js.map +1 -0
- package/lib/module/web-sheet.js +216 -0
- package/lib/module/web-sheet.js.map +1 -0
- package/lib/typescript/commonjs/binding.d.ts +31 -0
- package/lib/typescript/commonjs/binding.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/command-host.d.ts +7 -0
- package/lib/typescript/commonjs/chrome/command-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/defined.d.ts +7 -0
- package/lib/typescript/commonjs/chrome/defined.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/layout-hosts.d.ts +26 -0
- package/lib/typescript/commonjs/chrome/layout-hosts.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/page-footer-host.d.ts +10 -0
- package/lib/typescript/commonjs/chrome/page-footer-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/rail-host.d.ts +3 -0
- package/lib/typescript/commonjs/chrome/rail-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/safe-area-inset.d.ts +37 -0
- package/lib/typescript/commonjs/chrome/safe-area-inset.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/scroll-view-host.d.ts +31 -0
- package/lib/typescript/commonjs/chrome/scroll-view-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/settings-host.d.ts +12 -0
- package/lib/typescript/commonjs/chrome/settings-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/chrome/sidebar-host.d.ts +18 -0
- package/lib/typescript/commonjs/chrome/sidebar-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/accordion.d.ts +38 -0
- package/lib/typescript/commonjs/controls/accordion.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/activity-feed.d.ts +21 -0
- package/lib/typescript/commonjs/controls/activity-feed.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/activity-heatmap.d.ts +40 -0
- package/lib/typescript/commonjs/controls/activity-heatmap.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/address.d.ts +41 -0
- package/lib/typescript/commonjs/controls/address.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/agent-avatar.d.ts +36 -0
- package/lib/typescript/commonjs/controls/agent-avatar.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/agent-chat.d.ts +43 -0
- package/lib/typescript/commonjs/controls/agent-chat.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/agent-creator.d.ts +35 -0
- package/lib/typescript/commonjs/controls/agent-creator.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/agent-reply.d.ts +26 -0
- package/lib/typescript/commonjs/controls/agent-reply.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/agents.d.ts +159 -0
- package/lib/typescript/commonjs/controls/agents.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/ai-chat.d.ts +103 -0
- package/lib/typescript/commonjs/controls/ai-chat.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/ai-profile-card.d.ts +26 -0
- package/lib/typescript/commonjs/controls/ai-profile-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/ambient-photo.d.ts +23 -0
- package/lib/typescript/commonjs/controls/ambient-photo.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/animated-check.d.ts +19 -0
- package/lib/typescript/commonjs/controls/animated-check.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/avatar-flight.d.ts +20 -0
- package/lib/typescript/commonjs/controls/avatar-flight.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/booking.d.ts +50 -0
- package/lib/typescript/commonjs/controls/booking.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/breadcrumb.d.ts +38 -0
- package/lib/typescript/commonjs/controls/breadcrumb.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/calendar.d.ts +46 -0
- package/lib/typescript/commonjs/controls/calendar.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/call-ui.d.ts +106 -0
- package/lib/typescript/commonjs/controls/call-ui.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/card-form.d.ts +44 -0
- package/lib/typescript/commonjs/controls/card-form.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/carousel.d.ts +64 -0
- package/lib/typescript/commonjs/controls/carousel.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/cart-panel.d.ts +59 -0
- package/lib/typescript/commonjs/controls/cart-panel.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/category-bar.d.ts +30 -0
- package/lib/typescript/commonjs/controls/category-bar.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/chart-cards.d.ts +139 -0
- package/lib/typescript/commonjs/controls/chart-cards.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/chat-composer.d.ts +117 -0
- package/lib/typescript/commonjs/controls/chat-composer.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/chat-people.d.ts +49 -0
- package/lib/typescript/commonjs/controls/chat-people.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/chat.d.ts +211 -0
- package/lib/typescript/commonjs/controls/chat.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/checkout-sheet.d.ts +26 -0
- package/lib/typescript/commonjs/controls/checkout-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/checkout-summary.d.ts +43 -0
- package/lib/typescript/commonjs/controls/checkout-summary.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/choice-list.d.ts +34 -0
- package/lib/typescript/commonjs/controls/choice-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/code.d.ts +53 -0
- package/lib/typescript/commonjs/controls/code.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/collapsible.d.ts +21 -0
- package/lib/typescript/commonjs/controls/collapsible.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/color-swatch-picker.d.ts +21 -0
- package/lib/typescript/commonjs/controls/color-swatch-picker.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/composer-panel.d.ts +48 -0
- package/lib/typescript/commonjs/controls/composer-panel.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/composition-bar.d.ts +27 -0
- package/lib/typescript/commonjs/controls/composition-bar.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/confirmation-dialog.d.ts +47 -0
- package/lib/typescript/commonjs/controls/confirmation-dialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/containers.d.ts +307 -0
- package/lib/typescript/commonjs/controls/containers.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/context-menu.d.ts +32 -0
- package/lib/typescript/commonjs/controls/context-menu.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/creator-studio.d.ts +111 -0
- package/lib/typescript/commonjs/controls/creator-studio.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/crm.d.ts +55 -0
- package/lib/typescript/commonjs/controls/crm.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/dashboard-cards.d.ts +33 -0
- package/lib/typescript/commonjs/controls/dashboard-cards.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/data-table.d.ts +103 -0
- package/lib/typescript/commonjs/controls/data-table.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/date-picker.d.ts +103 -0
- package/lib/typescript/commonjs/controls/date-picker.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/delivery-slot.d.ts +46 -0
- package/lib/typescript/commonjs/controls/delivery-slot.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/draw.d.ts +92 -0
- package/lib/typescript/commonjs/controls/draw.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/drop-zone.d.ts +28 -0
- package/lib/typescript/commonjs/controls/drop-zone.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/eviction.d.ts +29 -0
- package/lib/typescript/commonjs/controls/eviction.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/expandable-text.d.ts +29 -0
- package/lib/typescript/commonjs/controls/expandable-text.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/fact-strip.d.ts +31 -0
- package/lib/typescript/commonjs/controls/fact-strip.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/file-upload.d.ts +31 -0
- package/lib/typescript/commonjs/controls/file-upload.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/generic.d.ts +96 -0
- package/lib/typescript/commonjs/controls/generic.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/glass-group.d.ts +22 -0
- package/lib/typescript/commonjs/controls/glass-group.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/home-search.d.ts +43 -0
- package/lib/typescript/commonjs/controls/home-search.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/hover-card.d.ts +31 -0
- package/lib/typescript/commonjs/controls/hover-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/index.d.ts +9 -0
- package/lib/typescript/commonjs/controls/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/input-group.d.ts +30 -0
- package/lib/typescript/commonjs/controls/input-group.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/input-otp.d.ts +25 -0
- package/lib/typescript/commonjs/controls/input-otp.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/inputs.d.ts +206 -0
- package/lib/typescript/commonjs/controls/inputs.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/link-preview.d.ts +16 -0
- package/lib/typescript/commonjs/controls/link-preview.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/list.d.ts +192 -0
- package/lib/typescript/commonjs/controls/list.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/listing-actions.d.ts +58 -0
- package/lib/typescript/commonjs/controls/listing-actions.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/listing-card.d.ts +44 -0
- package/lib/typescript/commonjs/controls/listing-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/listing-editor.d.ts +35 -0
- package/lib/typescript/commonjs/controls/listing-editor.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/listings.d.ts +68 -0
- package/lib/typescript/commonjs/controls/listings.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/lockup.d.ts +42 -0
- package/lib/typescript/commonjs/controls/lockup.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/logistics.d.ts +133 -0
- package/lib/typescript/commonjs/controls/logistics.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/lyrics.d.ts +30 -0
- package/lib/typescript/commonjs/controls/lyrics.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/mail.d.ts +87 -0
- package/lib/typescript/commonjs/controls/mail.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/map-chrome.d.ts +56 -0
- package/lib/typescript/commonjs/controls/map-chrome.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/markdown.d.ts +43 -0
- package/lib/typescript/commonjs/controls/markdown.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/media-cards.d.ts +124 -0
- package/lib/typescript/commonjs/controls/media-cards.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/media-controls.d.ts +32 -0
- package/lib/typescript/commonjs/controls/media-controls.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/media-flight.d.ts +52 -0
- package/lib/typescript/commonjs/controls/media-flight.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/media-inset-border.d.ts +19 -0
- package/lib/typescript/commonjs/controls/media-inset-border.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/media-player.d.ts +109 -0
- package/lib/typescript/commonjs/controls/media-player.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/media.d.ts +68 -0
- package/lib/typescript/commonjs/controls/media.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/menu-item.d.ts +33 -0
- package/lib/typescript/commonjs/controls/menu-item.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/menubar.d.ts +28 -0
- package/lib/typescript/commonjs/controls/menubar.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/message-bubble.d.ts +53 -0
- package/lib/typescript/commonjs/controls/message-bubble.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/multi-agent-chat.d.ts +28 -0
- package/lib/typescript/commonjs/controls/multi-agent-chat.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/music-library.d.ts +65 -0
- package/lib/typescript/commonjs/controls/music-library.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/note-card.d.ts +32 -0
- package/lib/typescript/commonjs/controls/note-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/notification.d.ts +43 -0
- package/lib/typescript/commonjs/controls/notification.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/offering-badge.d.ts +19 -0
- package/lib/typescript/commonjs/controls/offering-badge.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/order-confirmation.d.ts +26 -0
- package/lib/typescript/commonjs/controls/order-confirmation.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/order-status.d.ts +35 -0
- package/lib/typescript/commonjs/controls/order-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/overlays.d.ts +175 -0
- package/lib/typescript/commonjs/controls/overlays.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/payment-method.d.ts +47 -0
- package/lib/typescript/commonjs/controls/payment-method.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/payment-status.d.ts +33 -0
- package/lib/typescript/commonjs/controls/payment-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/phone-input.d.ts +36 -0
- package/lib/typescript/commonjs/controls/phone-input.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/place-reviews.d.ts +21 -0
- package/lib/typescript/commonjs/controls/place-reviews.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/places.d.ts +92 -0
- package/lib/typescript/commonjs/controls/places.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/price-breakdown.d.ts +27 -0
- package/lib/typescript/commonjs/controls/price-breakdown.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/product.d.ts +71 -0
- package/lib/typescript/commonjs/controls/product.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/project-board.d.ts +63 -0
- package/lib/typescript/commonjs/controls/project-board.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/property-insights.d.ts +20 -0
- package/lib/typescript/commonjs/controls/property-insights.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/queue-panel.d.ts +35 -0
- package/lib/typescript/commonjs/controls/queue-panel.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/rating.d.ts +98 -0
- package/lib/typescript/commonjs/controls/rating.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/route-stops.d.ts +20 -0
- package/lib/typescript/commonjs/controls/route-stops.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/settings.d.ts +73 -0
- package/lib/typescript/commonjs/controls/settings.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/share-sheet.d.ts +29 -0
- package/lib/typescript/commonjs/controls/share-sheet.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/slider.d.ts +53 -0
- package/lib/typescript/commonjs/controls/slider.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/social-button.d.ts +32 -0
- package/lib/typescript/commonjs/controls/social-button.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/sortable-chip-row.d.ts +24 -0
- package/lib/typescript/commonjs/controls/sortable-chip-row.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/sortable-media.d.ts +29 -0
- package/lib/typescript/commonjs/controls/sortable-media.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/spinner-icon.d.ts +16 -0
- package/lib/typescript/commonjs/controls/spinner-icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/stat-bar.d.ts +108 -0
- package/lib/typescript/commonjs/controls/stat-bar.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/stat-cards.d.ts +25 -0
- package/lib/typescript/commonjs/controls/stat-cards.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/stay-filters.d.ts +111 -0
- package/lib/typescript/commonjs/controls/stay-filters.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/stay-search.d.ts +46 -0
- package/lib/typescript/commonjs/controls/stay-search.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/stepper.d.ts +43 -0
- package/lib/typescript/commonjs/controls/stepper.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/table.d.ts +64 -0
- package/lib/typescript/commonjs/controls/table.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/tag-field.d.ts +33 -0
- package/lib/typescript/commonjs/controls/tag-field.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/task-list.d.ts +17 -0
- package/lib/typescript/commonjs/controls/task-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/tenancy.d.ts +51 -0
- package/lib/typescript/commonjs/controls/tenancy.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/toolbar-group.d.ts +23 -0
- package/lib/typescript/commonjs/controls/toolbar-group.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/tooltip.d.ts +28 -0
- package/lib/typescript/commonjs/controls/tooltip.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/track-list.d.ts +91 -0
- package/lib/typescript/commonjs/controls/track-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/vendor-card.d.ts +23 -0
- package/lib/typescript/commonjs/controls/vendor-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/video-playback.d.ts +30 -0
- package/lib/typescript/commonjs/controls/video-playback.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/video-view.d.ts +18 -0
- package/lib/typescript/commonjs/controls/video-view.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/view-that-fits.d.ts +16 -0
- package/lib/typescript/commonjs/controls/view-that-fits.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/viewport.d.ts +17 -0
- package/lib/typescript/commonjs/controls/viewport.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/voice.d.ts +29 -0
- package/lib/typescript/commonjs/controls/voice.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/web-search.d.ts +17 -0
- package/lib/typescript/commonjs/controls/web-search.d.ts.map +1 -0
- package/lib/typescript/commonjs/controls/zoomable-media-gallery.d.ts +43 -0
- package/lib/typescript/commonjs/controls/zoomable-media-gallery.d.ts.map +1 -0
- package/lib/typescript/commonjs/depth-stack.d.ts +22 -0
- package/lib/typescript/commonjs/depth-stack.d.ts.map +1 -0
- package/lib/typescript/commonjs/env.d.ts +57 -0
- package/lib/typescript/commonjs/env.d.ts.map +1 -0
- package/lib/typescript/commonjs/environment.d.ts +49 -0
- package/lib/typescript/commonjs/environment.d.ts.map +1 -0
- package/lib/typescript/commonjs/generated/sf-symbols.generated.d.ts +8 -0
- package/lib/typescript/commonjs/generated/sf-symbols.generated.d.ts.map +1 -0
- package/lib/typescript/commonjs/generated/spec.generated.d.ts +2674 -0
- package/lib/typescript/commonjs/generated/spec.generated.d.ts.map +1 -0
- package/lib/typescript/commonjs/generated/web-sheet.generated.d.ts +15 -0
- package/lib/typescript/commonjs/generated/web-sheet.generated.d.ts.map +1 -0
- package/lib/typescript/commonjs/glass.d.ts +64 -0
- package/lib/typescript/commonjs/glass.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +271 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/modifier.d.ts +28 -0
- package/lib/typescript/commonjs/modifier.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/keyframes.d.ts +56 -0
- package/lib/typescript/commonjs/motion/keyframes.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/motion-node.d.ts +155 -0
- package/lib/typescript/commonjs/motion/motion-node.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/namespace.d.ts +46 -0
- package/lib/typescript/commonjs/motion/namespace.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/phases.d.ts +19 -0
- package/lib/typescript/commonjs/motion/phases.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/text-roll.d.ts +40 -0
- package/lib/typescript/commonjs/motion/text-roll.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/tokens.d.ts +42 -0
- package/lib/typescript/commonjs/motion/tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/tracks.d.ts +28 -0
- package/lib/typescript/commonjs/motion/tracks.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/transition.d.ts +24 -0
- package/lib/typescript/commonjs/motion/transition.d.ts.map +1 -0
- package/lib/typescript/commonjs/motion/values.d.ts +28 -0
- package/lib/typescript/commonjs/motion/values.d.ts.map +1 -0
- package/lib/typescript/commonjs/node.d.ts +3406 -0
- package/lib/typescript/commonjs/node.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/paint.d.ts +85 -0
- package/lib/typescript/commonjs/paint.d.ts.map +1 -0
- package/lib/typescript/commonjs/painted-host.d.ts +14 -0
- package/lib/typescript/commonjs/painted-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/bottom-bar-host.d.ts +3 -0
- package/lib/typescript/commonjs/platform/bottom-bar-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/confirmation-host.android.d.ts +3 -0
- package/lib/typescript/commonjs/platform/confirmation-host.android.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/confirmation-host.ios.d.ts +3 -0
- package/lib/typescript/commonjs/platform/confirmation-host.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/confirmation-host.web.d.ts +3 -0
- package/lib/typescript/commonjs/platform/confirmation-host.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/glass-group-host.android.d.ts +5 -0
- package/lib/typescript/commonjs/platform/glass-group-host.android.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/glass-group-host.ios.d.ts +4 -0
- package/lib/typescript/commonjs/platform/glass-group-host.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/glass-group-host.types.d.ts +30 -0
- package/lib/typescript/commonjs/platform/glass-group-host.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/glass-group-host.web.d.ts +11 -0
- package/lib/typescript/commonjs/platform/glass-group-host.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/glass-host.android.d.ts +3 -0
- package/lib/typescript/commonjs/platform/glass-host.android.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/glass-host.ios.d.ts +3 -0
- package/lib/typescript/commonjs/platform/glass-host.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/glass-host.types.d.ts +38 -0
- package/lib/typescript/commonjs/platform/glass-host.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/glass-host.web.d.ts +8 -0
- package/lib/typescript/commonjs/platform/glass-host.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/header-host.d.ts +2 -0
- package/lib/typescript/commonjs/platform/header-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/header-host.ios.d.ts +5 -0
- package/lib/typescript/commonjs/platform/header-host.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/header-page.d.ts +27 -0
- package/lib/typescript/commonjs/platform/header-page.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/host.types.d.ts +23 -0
- package/lib/typescript/commonjs/platform/host.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/lens-glass.d.ts +13 -0
- package/lib/typescript/commonjs/platform/lens-glass.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/lens-group.d.ts +32 -0
- package/lib/typescript/commonjs/platform/lens-group.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/lens.d.ts +103 -0
- package/lib/typescript/commonjs/platform/lens.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/menu-actions.d.ts +32 -0
- package/lib/typescript/commonjs/platform/menu-actions.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/menu-dropdown.d.ts +43 -0
- package/lib/typescript/commonjs/platform/menu-dropdown.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/menu-host.android.d.ts +12 -0
- package/lib/typescript/commonjs/platform/menu-host.android.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/menu-host.ios.d.ts +3 -0
- package/lib/typescript/commonjs/platform/menu-host.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/menu-host.web.d.ts +2 -0
- package/lib/typescript/commonjs/platform/menu-host.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/menu-rows.d.ts +72 -0
- package/lib/typescript/commonjs/platform/menu-rows.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/sf-symbol.ios.d.ts +3 -0
- package/lib/typescript/commonjs/platform/sf-symbol.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/platform/values.d.ts +6 -0
- package/lib/typescript/commonjs/platform/values.d.ts.map +1 -0
- package/lib/typescript/commonjs/primitives.d.ts +272 -0
- package/lib/typescript/commonjs/primitives.d.ts.map +1 -0
- package/lib/typescript/commonjs/render.d.ts +25 -0
- package/lib/typescript/commonjs/render.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/app-layout.d.ts +9 -0
- package/lib/typescript/commonjs/router/app-layout.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/bar.d.ts +12 -0
- package/lib/typescript/commonjs/router/bar.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/bar.ios.d.ts +11 -0
- package/lib/typescript/commonjs/router/bar.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/components.d.ts +41 -0
- package/lib/typescript/commonjs/router/components.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/index.d.ts +8 -0
- package/lib/typescript/commonjs/router/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/navigators.d.ts +5 -0
- package/lib/typescript/commonjs/router/navigators.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/nodes.d.ts +75 -0
- package/lib/typescript/commonjs/router/nodes.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/pager.d.ts +8 -0
- package/lib/typescript/commonjs/router/pager.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/primary.d.ts +13 -0
- package/lib/typescript/commonjs/router/primary.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/routes.d.ts +4 -0
- package/lib/typescript/commonjs/router/routes.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/screen-header.d.ts +3 -0
- package/lib/typescript/commonjs/router/screen-header.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/screen-header.ios.d.ts +9 -0
- package/lib/typescript/commonjs/router/screen-header.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/screen-host.d.ts +5 -0
- package/lib/typescript/commonjs/router/screen-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/sheet-bloom.d.ts +12 -0
- package/lib/typescript/commonjs/router/sheet-bloom.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/sheet-host.d.ts +2 -0
- package/lib/typescript/commonjs/router/sheet-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/sheet-host.ios.d.ts +3 -0
- package/lib/typescript/commonjs/router/sheet-host.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/shell-panels.d.ts +9 -0
- package/lib/typescript/commonjs/router/shell-panels.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/stack.d.ts +5 -0
- package/lib/typescript/commonjs/router/stack.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/stack.ios.d.ts +5 -0
- package/lib/typescript/commonjs/router/stack.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/stack.web.d.ts +5 -0
- package/lib/typescript/commonjs/router/stack.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/tabs.d.ts +2 -0
- package/lib/typescript/commonjs/router/tabs.d.ts.map +1 -0
- package/lib/typescript/commonjs/router/tabs.ios.d.ts +2 -0
- package/lib/typescript/commonjs/router/tabs.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/state-host.d.ts +44 -0
- package/lib/typescript/commonjs/state-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/style.d.ts +268 -0
- package/lib/typescript/commonjs/style.d.ts.map +1 -0
- package/lib/typescript/commonjs/toast.d.ts +31 -0
- package/lib/typescript/commonjs/toast.d.ts.map +1 -0
- package/lib/typescript/commonjs/tokens.d.ts +446 -0
- package/lib/typescript/commonjs/tokens.d.ts.map +1 -0
- package/lib/typescript/commonjs/variants.d.ts +50 -0
- package/lib/typescript/commonjs/variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/view.d.ts +29 -0
- package/lib/typescript/commonjs/view.d.ts.map +1 -0
- package/lib/typescript/commonjs/web-sheet.d.ts +78 -0
- package/lib/typescript/commonjs/web-sheet.d.ts.map +1 -0
- package/lib/typescript/module/binding.d.ts +31 -0
- package/lib/typescript/module/binding.d.ts.map +1 -0
- package/lib/typescript/module/chrome/command-host.d.ts +7 -0
- package/lib/typescript/module/chrome/command-host.d.ts.map +1 -0
- package/lib/typescript/module/chrome/defined.d.ts +7 -0
- package/lib/typescript/module/chrome/defined.d.ts.map +1 -0
- package/lib/typescript/module/chrome/layout-hosts.d.ts +26 -0
- package/lib/typescript/module/chrome/layout-hosts.d.ts.map +1 -0
- package/lib/typescript/module/chrome/page-footer-host.d.ts +10 -0
- package/lib/typescript/module/chrome/page-footer-host.d.ts.map +1 -0
- package/lib/typescript/module/chrome/rail-host.d.ts +3 -0
- package/lib/typescript/module/chrome/rail-host.d.ts.map +1 -0
- package/lib/typescript/module/chrome/safe-area-inset.d.ts +37 -0
- package/lib/typescript/module/chrome/safe-area-inset.d.ts.map +1 -0
- package/lib/typescript/module/chrome/scroll-view-host.d.ts +31 -0
- package/lib/typescript/module/chrome/scroll-view-host.d.ts.map +1 -0
- package/lib/typescript/module/chrome/settings-host.d.ts +12 -0
- package/lib/typescript/module/chrome/settings-host.d.ts.map +1 -0
- package/lib/typescript/module/chrome/sidebar-host.d.ts +18 -0
- package/lib/typescript/module/chrome/sidebar-host.d.ts.map +1 -0
- package/lib/typescript/module/controls/accordion.d.ts +38 -0
- package/lib/typescript/module/controls/accordion.d.ts.map +1 -0
- package/lib/typescript/module/controls/activity-feed.d.ts +21 -0
- package/lib/typescript/module/controls/activity-feed.d.ts.map +1 -0
- package/lib/typescript/module/controls/activity-heatmap.d.ts +40 -0
- package/lib/typescript/module/controls/activity-heatmap.d.ts.map +1 -0
- package/lib/typescript/module/controls/address.d.ts +41 -0
- package/lib/typescript/module/controls/address.d.ts.map +1 -0
- package/lib/typescript/module/controls/agent-avatar.d.ts +36 -0
- package/lib/typescript/module/controls/agent-avatar.d.ts.map +1 -0
- package/lib/typescript/module/controls/agent-chat.d.ts +43 -0
- package/lib/typescript/module/controls/agent-chat.d.ts.map +1 -0
- package/lib/typescript/module/controls/agent-creator.d.ts +35 -0
- package/lib/typescript/module/controls/agent-creator.d.ts.map +1 -0
- package/lib/typescript/module/controls/agent-reply.d.ts +26 -0
- package/lib/typescript/module/controls/agent-reply.d.ts.map +1 -0
- package/lib/typescript/module/controls/agents.d.ts +159 -0
- package/lib/typescript/module/controls/agents.d.ts.map +1 -0
- package/lib/typescript/module/controls/ai-chat.d.ts +103 -0
- package/lib/typescript/module/controls/ai-chat.d.ts.map +1 -0
- package/lib/typescript/module/controls/ai-profile-card.d.ts +26 -0
- package/lib/typescript/module/controls/ai-profile-card.d.ts.map +1 -0
- package/lib/typescript/module/controls/ambient-photo.d.ts +23 -0
- package/lib/typescript/module/controls/ambient-photo.d.ts.map +1 -0
- package/lib/typescript/module/controls/animated-check.d.ts +19 -0
- package/lib/typescript/module/controls/animated-check.d.ts.map +1 -0
- package/lib/typescript/module/controls/avatar-flight.d.ts +20 -0
- package/lib/typescript/module/controls/avatar-flight.d.ts.map +1 -0
- package/lib/typescript/module/controls/booking.d.ts +50 -0
- package/lib/typescript/module/controls/booking.d.ts.map +1 -0
- package/lib/typescript/module/controls/breadcrumb.d.ts +38 -0
- package/lib/typescript/module/controls/breadcrumb.d.ts.map +1 -0
- package/lib/typescript/module/controls/calendar.d.ts +46 -0
- package/lib/typescript/module/controls/calendar.d.ts.map +1 -0
- package/lib/typescript/module/controls/call-ui.d.ts +106 -0
- package/lib/typescript/module/controls/call-ui.d.ts.map +1 -0
- package/lib/typescript/module/controls/card-form.d.ts +44 -0
- package/lib/typescript/module/controls/card-form.d.ts.map +1 -0
- package/lib/typescript/module/controls/carousel.d.ts +64 -0
- package/lib/typescript/module/controls/carousel.d.ts.map +1 -0
- package/lib/typescript/module/controls/cart-panel.d.ts +59 -0
- package/lib/typescript/module/controls/cart-panel.d.ts.map +1 -0
- package/lib/typescript/module/controls/category-bar.d.ts +30 -0
- package/lib/typescript/module/controls/category-bar.d.ts.map +1 -0
- package/lib/typescript/module/controls/chart-cards.d.ts +139 -0
- package/lib/typescript/module/controls/chart-cards.d.ts.map +1 -0
- package/lib/typescript/module/controls/chat-composer.d.ts +117 -0
- package/lib/typescript/module/controls/chat-composer.d.ts.map +1 -0
- package/lib/typescript/module/controls/chat-people.d.ts +49 -0
- package/lib/typescript/module/controls/chat-people.d.ts.map +1 -0
- package/lib/typescript/module/controls/chat.d.ts +211 -0
- package/lib/typescript/module/controls/chat.d.ts.map +1 -0
- package/lib/typescript/module/controls/checkout-sheet.d.ts +26 -0
- package/lib/typescript/module/controls/checkout-sheet.d.ts.map +1 -0
- package/lib/typescript/module/controls/checkout-summary.d.ts +43 -0
- package/lib/typescript/module/controls/checkout-summary.d.ts.map +1 -0
- package/lib/typescript/module/controls/choice-list.d.ts +34 -0
- package/lib/typescript/module/controls/choice-list.d.ts.map +1 -0
- package/lib/typescript/module/controls/code.d.ts +53 -0
- package/lib/typescript/module/controls/code.d.ts.map +1 -0
- package/lib/typescript/module/controls/collapsible.d.ts +21 -0
- package/lib/typescript/module/controls/collapsible.d.ts.map +1 -0
- package/lib/typescript/module/controls/color-swatch-picker.d.ts +21 -0
- package/lib/typescript/module/controls/color-swatch-picker.d.ts.map +1 -0
- package/lib/typescript/module/controls/composer-panel.d.ts +48 -0
- package/lib/typescript/module/controls/composer-panel.d.ts.map +1 -0
- package/lib/typescript/module/controls/composition-bar.d.ts +27 -0
- package/lib/typescript/module/controls/composition-bar.d.ts.map +1 -0
- package/lib/typescript/module/controls/confirmation-dialog.d.ts +47 -0
- package/lib/typescript/module/controls/confirmation-dialog.d.ts.map +1 -0
- package/lib/typescript/module/controls/containers.d.ts +307 -0
- package/lib/typescript/module/controls/containers.d.ts.map +1 -0
- package/lib/typescript/module/controls/context-menu.d.ts +32 -0
- package/lib/typescript/module/controls/context-menu.d.ts.map +1 -0
- package/lib/typescript/module/controls/creator-studio.d.ts +111 -0
- package/lib/typescript/module/controls/creator-studio.d.ts.map +1 -0
- package/lib/typescript/module/controls/crm.d.ts +55 -0
- package/lib/typescript/module/controls/crm.d.ts.map +1 -0
- package/lib/typescript/module/controls/dashboard-cards.d.ts +33 -0
- package/lib/typescript/module/controls/dashboard-cards.d.ts.map +1 -0
- package/lib/typescript/module/controls/data-table.d.ts +103 -0
- package/lib/typescript/module/controls/data-table.d.ts.map +1 -0
- package/lib/typescript/module/controls/date-picker.d.ts +103 -0
- package/lib/typescript/module/controls/date-picker.d.ts.map +1 -0
- package/lib/typescript/module/controls/delivery-slot.d.ts +46 -0
- package/lib/typescript/module/controls/delivery-slot.d.ts.map +1 -0
- package/lib/typescript/module/controls/draw.d.ts +92 -0
- package/lib/typescript/module/controls/draw.d.ts.map +1 -0
- package/lib/typescript/module/controls/drop-zone.d.ts +28 -0
- package/lib/typescript/module/controls/drop-zone.d.ts.map +1 -0
- package/lib/typescript/module/controls/eviction.d.ts +29 -0
- package/lib/typescript/module/controls/eviction.d.ts.map +1 -0
- package/lib/typescript/module/controls/expandable-text.d.ts +29 -0
- package/lib/typescript/module/controls/expandable-text.d.ts.map +1 -0
- package/lib/typescript/module/controls/fact-strip.d.ts +31 -0
- package/lib/typescript/module/controls/fact-strip.d.ts.map +1 -0
- package/lib/typescript/module/controls/file-upload.d.ts +31 -0
- package/lib/typescript/module/controls/file-upload.d.ts.map +1 -0
- package/lib/typescript/module/controls/generic.d.ts +96 -0
- package/lib/typescript/module/controls/generic.d.ts.map +1 -0
- package/lib/typescript/module/controls/glass-group.d.ts +22 -0
- package/lib/typescript/module/controls/glass-group.d.ts.map +1 -0
- package/lib/typescript/module/controls/home-search.d.ts +43 -0
- package/lib/typescript/module/controls/home-search.d.ts.map +1 -0
- package/lib/typescript/module/controls/hover-card.d.ts +31 -0
- package/lib/typescript/module/controls/hover-card.d.ts.map +1 -0
- package/lib/typescript/module/controls/index.d.ts +9 -0
- package/lib/typescript/module/controls/index.d.ts.map +1 -0
- package/lib/typescript/module/controls/input-group.d.ts +30 -0
- package/lib/typescript/module/controls/input-group.d.ts.map +1 -0
- package/lib/typescript/module/controls/input-otp.d.ts +25 -0
- package/lib/typescript/module/controls/input-otp.d.ts.map +1 -0
- package/lib/typescript/module/controls/inputs.d.ts +206 -0
- package/lib/typescript/module/controls/inputs.d.ts.map +1 -0
- package/lib/typescript/module/controls/link-preview.d.ts +16 -0
- package/lib/typescript/module/controls/link-preview.d.ts.map +1 -0
- package/lib/typescript/module/controls/list.d.ts +192 -0
- package/lib/typescript/module/controls/list.d.ts.map +1 -0
- package/lib/typescript/module/controls/listing-actions.d.ts +58 -0
- package/lib/typescript/module/controls/listing-actions.d.ts.map +1 -0
- package/lib/typescript/module/controls/listing-card.d.ts +44 -0
- package/lib/typescript/module/controls/listing-card.d.ts.map +1 -0
- package/lib/typescript/module/controls/listing-editor.d.ts +35 -0
- package/lib/typescript/module/controls/listing-editor.d.ts.map +1 -0
- package/lib/typescript/module/controls/listings.d.ts +68 -0
- package/lib/typescript/module/controls/listings.d.ts.map +1 -0
- package/lib/typescript/module/controls/lockup.d.ts +42 -0
- package/lib/typescript/module/controls/lockup.d.ts.map +1 -0
- package/lib/typescript/module/controls/logistics.d.ts +133 -0
- package/lib/typescript/module/controls/logistics.d.ts.map +1 -0
- package/lib/typescript/module/controls/lyrics.d.ts +30 -0
- package/lib/typescript/module/controls/lyrics.d.ts.map +1 -0
- package/lib/typescript/module/controls/mail.d.ts +87 -0
- package/lib/typescript/module/controls/mail.d.ts.map +1 -0
- package/lib/typescript/module/controls/map-chrome.d.ts +56 -0
- package/lib/typescript/module/controls/map-chrome.d.ts.map +1 -0
- package/lib/typescript/module/controls/markdown.d.ts +43 -0
- package/lib/typescript/module/controls/markdown.d.ts.map +1 -0
- package/lib/typescript/module/controls/media-cards.d.ts +124 -0
- package/lib/typescript/module/controls/media-cards.d.ts.map +1 -0
- package/lib/typescript/module/controls/media-controls.d.ts +32 -0
- package/lib/typescript/module/controls/media-controls.d.ts.map +1 -0
- package/lib/typescript/module/controls/media-flight.d.ts +52 -0
- package/lib/typescript/module/controls/media-flight.d.ts.map +1 -0
- package/lib/typescript/module/controls/media-inset-border.d.ts +19 -0
- package/lib/typescript/module/controls/media-inset-border.d.ts.map +1 -0
- package/lib/typescript/module/controls/media-player.d.ts +109 -0
- package/lib/typescript/module/controls/media-player.d.ts.map +1 -0
- package/lib/typescript/module/controls/media.d.ts +68 -0
- package/lib/typescript/module/controls/media.d.ts.map +1 -0
- package/lib/typescript/module/controls/menu-item.d.ts +33 -0
- package/lib/typescript/module/controls/menu-item.d.ts.map +1 -0
- package/lib/typescript/module/controls/menubar.d.ts +28 -0
- package/lib/typescript/module/controls/menubar.d.ts.map +1 -0
- package/lib/typescript/module/controls/message-bubble.d.ts +53 -0
- package/lib/typescript/module/controls/message-bubble.d.ts.map +1 -0
- package/lib/typescript/module/controls/multi-agent-chat.d.ts +28 -0
- package/lib/typescript/module/controls/multi-agent-chat.d.ts.map +1 -0
- package/lib/typescript/module/controls/music-library.d.ts +65 -0
- package/lib/typescript/module/controls/music-library.d.ts.map +1 -0
- package/lib/typescript/module/controls/note-card.d.ts +32 -0
- package/lib/typescript/module/controls/note-card.d.ts.map +1 -0
- package/lib/typescript/module/controls/notification.d.ts +43 -0
- package/lib/typescript/module/controls/notification.d.ts.map +1 -0
- package/lib/typescript/module/controls/offering-badge.d.ts +19 -0
- package/lib/typescript/module/controls/offering-badge.d.ts.map +1 -0
- package/lib/typescript/module/controls/order-confirmation.d.ts +26 -0
- package/lib/typescript/module/controls/order-confirmation.d.ts.map +1 -0
- package/lib/typescript/module/controls/order-status.d.ts +35 -0
- package/lib/typescript/module/controls/order-status.d.ts.map +1 -0
- package/lib/typescript/module/controls/overlays.d.ts +175 -0
- package/lib/typescript/module/controls/overlays.d.ts.map +1 -0
- package/lib/typescript/module/controls/payment-method.d.ts +47 -0
- package/lib/typescript/module/controls/payment-method.d.ts.map +1 -0
- package/lib/typescript/module/controls/payment-status.d.ts +33 -0
- package/lib/typescript/module/controls/payment-status.d.ts.map +1 -0
- package/lib/typescript/module/controls/phone-input.d.ts +36 -0
- package/lib/typescript/module/controls/phone-input.d.ts.map +1 -0
- package/lib/typescript/module/controls/place-reviews.d.ts +21 -0
- package/lib/typescript/module/controls/place-reviews.d.ts.map +1 -0
- package/lib/typescript/module/controls/places.d.ts +92 -0
- package/lib/typescript/module/controls/places.d.ts.map +1 -0
- package/lib/typescript/module/controls/price-breakdown.d.ts +27 -0
- package/lib/typescript/module/controls/price-breakdown.d.ts.map +1 -0
- package/lib/typescript/module/controls/product.d.ts +71 -0
- package/lib/typescript/module/controls/product.d.ts.map +1 -0
- package/lib/typescript/module/controls/project-board.d.ts +63 -0
- package/lib/typescript/module/controls/project-board.d.ts.map +1 -0
- package/lib/typescript/module/controls/property-insights.d.ts +20 -0
- package/lib/typescript/module/controls/property-insights.d.ts.map +1 -0
- package/lib/typescript/module/controls/queue-panel.d.ts +35 -0
- package/lib/typescript/module/controls/queue-panel.d.ts.map +1 -0
- package/lib/typescript/module/controls/rating.d.ts +98 -0
- package/lib/typescript/module/controls/rating.d.ts.map +1 -0
- package/lib/typescript/module/controls/route-stops.d.ts +20 -0
- package/lib/typescript/module/controls/route-stops.d.ts.map +1 -0
- package/lib/typescript/module/controls/settings.d.ts +73 -0
- package/lib/typescript/module/controls/settings.d.ts.map +1 -0
- package/lib/typescript/module/controls/share-sheet.d.ts +29 -0
- package/lib/typescript/module/controls/share-sheet.d.ts.map +1 -0
- package/lib/typescript/module/controls/slider.d.ts +53 -0
- package/lib/typescript/module/controls/slider.d.ts.map +1 -0
- package/lib/typescript/module/controls/social-button.d.ts +32 -0
- package/lib/typescript/module/controls/social-button.d.ts.map +1 -0
- package/lib/typescript/module/controls/sortable-chip-row.d.ts +24 -0
- package/lib/typescript/module/controls/sortable-chip-row.d.ts.map +1 -0
- package/lib/typescript/module/controls/sortable-media.d.ts +29 -0
- package/lib/typescript/module/controls/sortable-media.d.ts.map +1 -0
- package/lib/typescript/module/controls/spinner-icon.d.ts +16 -0
- package/lib/typescript/module/controls/spinner-icon.d.ts.map +1 -0
- package/lib/typescript/module/controls/stat-bar.d.ts +108 -0
- package/lib/typescript/module/controls/stat-bar.d.ts.map +1 -0
- package/lib/typescript/module/controls/stat-cards.d.ts +25 -0
- package/lib/typescript/module/controls/stat-cards.d.ts.map +1 -0
- package/lib/typescript/module/controls/stay-filters.d.ts +111 -0
- package/lib/typescript/module/controls/stay-filters.d.ts.map +1 -0
- package/lib/typescript/module/controls/stay-search.d.ts +46 -0
- package/lib/typescript/module/controls/stay-search.d.ts.map +1 -0
- package/lib/typescript/module/controls/stepper.d.ts +43 -0
- package/lib/typescript/module/controls/stepper.d.ts.map +1 -0
- package/lib/typescript/module/controls/table.d.ts +64 -0
- package/lib/typescript/module/controls/table.d.ts.map +1 -0
- package/lib/typescript/module/controls/tag-field.d.ts +33 -0
- package/lib/typescript/module/controls/tag-field.d.ts.map +1 -0
- package/lib/typescript/module/controls/task-list.d.ts +17 -0
- package/lib/typescript/module/controls/task-list.d.ts.map +1 -0
- package/lib/typescript/module/controls/tenancy.d.ts +51 -0
- package/lib/typescript/module/controls/tenancy.d.ts.map +1 -0
- package/lib/typescript/module/controls/toolbar-group.d.ts +23 -0
- package/lib/typescript/module/controls/toolbar-group.d.ts.map +1 -0
- package/lib/typescript/module/controls/tooltip.d.ts +28 -0
- package/lib/typescript/module/controls/tooltip.d.ts.map +1 -0
- package/lib/typescript/module/controls/track-list.d.ts +91 -0
- package/lib/typescript/module/controls/track-list.d.ts.map +1 -0
- package/lib/typescript/module/controls/vendor-card.d.ts +23 -0
- package/lib/typescript/module/controls/vendor-card.d.ts.map +1 -0
- package/lib/typescript/module/controls/video-playback.d.ts +30 -0
- package/lib/typescript/module/controls/video-playback.d.ts.map +1 -0
- package/lib/typescript/module/controls/video-view.d.ts +18 -0
- package/lib/typescript/module/controls/video-view.d.ts.map +1 -0
- package/lib/typescript/module/controls/view-that-fits.d.ts +16 -0
- package/lib/typescript/module/controls/view-that-fits.d.ts.map +1 -0
- package/lib/typescript/module/controls/viewport.d.ts +17 -0
- package/lib/typescript/module/controls/viewport.d.ts.map +1 -0
- package/lib/typescript/module/controls/voice.d.ts +29 -0
- package/lib/typescript/module/controls/voice.d.ts.map +1 -0
- package/lib/typescript/module/controls/web-search.d.ts +17 -0
- package/lib/typescript/module/controls/web-search.d.ts.map +1 -0
- package/lib/typescript/module/controls/zoomable-media-gallery.d.ts +43 -0
- package/lib/typescript/module/controls/zoomable-media-gallery.d.ts.map +1 -0
- package/lib/typescript/module/depth-stack.d.ts +22 -0
- package/lib/typescript/module/depth-stack.d.ts.map +1 -0
- package/lib/typescript/module/env.d.ts +57 -0
- package/lib/typescript/module/env.d.ts.map +1 -0
- package/lib/typescript/module/environment.d.ts +49 -0
- package/lib/typescript/module/environment.d.ts.map +1 -0
- package/lib/typescript/module/generated/sf-symbols.generated.d.ts +8 -0
- package/lib/typescript/module/generated/sf-symbols.generated.d.ts.map +1 -0
- package/lib/typescript/module/generated/spec.generated.d.ts +2674 -0
- package/lib/typescript/module/generated/spec.generated.d.ts.map +1 -0
- package/lib/typescript/module/generated/web-sheet.generated.d.ts +15 -0
- package/lib/typescript/module/generated/web-sheet.generated.d.ts.map +1 -0
- package/lib/typescript/module/glass.d.ts +64 -0
- package/lib/typescript/module/glass.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +271 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/modifier.d.ts +28 -0
- package/lib/typescript/module/modifier.d.ts.map +1 -0
- package/lib/typescript/module/motion/keyframes.d.ts +56 -0
- package/lib/typescript/module/motion/keyframes.d.ts.map +1 -0
- package/lib/typescript/module/motion/motion-node.d.ts +155 -0
- package/lib/typescript/module/motion/motion-node.d.ts.map +1 -0
- package/lib/typescript/module/motion/namespace.d.ts +46 -0
- package/lib/typescript/module/motion/namespace.d.ts.map +1 -0
- package/lib/typescript/module/motion/phases.d.ts +19 -0
- package/lib/typescript/module/motion/phases.d.ts.map +1 -0
- package/lib/typescript/module/motion/text-roll.d.ts +40 -0
- package/lib/typescript/module/motion/text-roll.d.ts.map +1 -0
- package/lib/typescript/module/motion/tokens.d.ts +42 -0
- package/lib/typescript/module/motion/tokens.d.ts.map +1 -0
- package/lib/typescript/module/motion/tracks.d.ts +28 -0
- package/lib/typescript/module/motion/tracks.d.ts.map +1 -0
- package/lib/typescript/module/motion/transition.d.ts +24 -0
- package/lib/typescript/module/motion/transition.d.ts.map +1 -0
- package/lib/typescript/module/motion/values.d.ts +28 -0
- package/lib/typescript/module/motion/values.d.ts.map +1 -0
- package/lib/typescript/module/node.d.ts +3406 -0
- package/lib/typescript/module/node.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/paint.d.ts +85 -0
- package/lib/typescript/module/paint.d.ts.map +1 -0
- package/lib/typescript/module/painted-host.d.ts +14 -0
- package/lib/typescript/module/painted-host.d.ts.map +1 -0
- package/lib/typescript/module/platform/bottom-bar-host.d.ts +3 -0
- package/lib/typescript/module/platform/bottom-bar-host.d.ts.map +1 -0
- package/lib/typescript/module/platform/confirmation-host.android.d.ts +3 -0
- package/lib/typescript/module/platform/confirmation-host.android.d.ts.map +1 -0
- package/lib/typescript/module/platform/confirmation-host.ios.d.ts +3 -0
- package/lib/typescript/module/platform/confirmation-host.ios.d.ts.map +1 -0
- package/lib/typescript/module/platform/confirmation-host.web.d.ts +3 -0
- package/lib/typescript/module/platform/confirmation-host.web.d.ts.map +1 -0
- package/lib/typescript/module/platform/glass-group-host.android.d.ts +5 -0
- package/lib/typescript/module/platform/glass-group-host.android.d.ts.map +1 -0
- package/lib/typescript/module/platform/glass-group-host.ios.d.ts +4 -0
- package/lib/typescript/module/platform/glass-group-host.ios.d.ts.map +1 -0
- package/lib/typescript/module/platform/glass-group-host.types.d.ts +30 -0
- package/lib/typescript/module/platform/glass-group-host.types.d.ts.map +1 -0
- package/lib/typescript/module/platform/glass-group-host.web.d.ts +11 -0
- package/lib/typescript/module/platform/glass-group-host.web.d.ts.map +1 -0
- package/lib/typescript/module/platform/glass-host.android.d.ts +3 -0
- package/lib/typescript/module/platform/glass-host.android.d.ts.map +1 -0
- package/lib/typescript/module/platform/glass-host.ios.d.ts +3 -0
- package/lib/typescript/module/platform/glass-host.ios.d.ts.map +1 -0
- package/lib/typescript/module/platform/glass-host.types.d.ts +38 -0
- package/lib/typescript/module/platform/glass-host.types.d.ts.map +1 -0
- package/lib/typescript/module/platform/glass-host.web.d.ts +8 -0
- package/lib/typescript/module/platform/glass-host.web.d.ts.map +1 -0
- package/lib/typescript/module/platform/header-host.d.ts +2 -0
- package/lib/typescript/module/platform/header-host.d.ts.map +1 -0
- package/lib/typescript/module/platform/header-host.ios.d.ts +5 -0
- package/lib/typescript/module/platform/header-host.ios.d.ts.map +1 -0
- package/lib/typescript/module/platform/header-page.d.ts +27 -0
- package/lib/typescript/module/platform/header-page.d.ts.map +1 -0
- package/lib/typescript/module/platform/host.types.d.ts +23 -0
- package/lib/typescript/module/platform/host.types.d.ts.map +1 -0
- package/lib/typescript/module/platform/lens-glass.d.ts +13 -0
- package/lib/typescript/module/platform/lens-glass.d.ts.map +1 -0
- package/lib/typescript/module/platform/lens-group.d.ts +32 -0
- package/lib/typescript/module/platform/lens-group.d.ts.map +1 -0
- package/lib/typescript/module/platform/lens.d.ts +103 -0
- package/lib/typescript/module/platform/lens.d.ts.map +1 -0
- package/lib/typescript/module/platform/menu-actions.d.ts +32 -0
- package/lib/typescript/module/platform/menu-actions.d.ts.map +1 -0
- package/lib/typescript/module/platform/menu-dropdown.d.ts +43 -0
- package/lib/typescript/module/platform/menu-dropdown.d.ts.map +1 -0
- package/lib/typescript/module/platform/menu-host.android.d.ts +12 -0
- package/lib/typescript/module/platform/menu-host.android.d.ts.map +1 -0
- package/lib/typescript/module/platform/menu-host.ios.d.ts +3 -0
- package/lib/typescript/module/platform/menu-host.ios.d.ts.map +1 -0
- package/lib/typescript/module/platform/menu-host.web.d.ts +2 -0
- package/lib/typescript/module/platform/menu-host.web.d.ts.map +1 -0
- package/lib/typescript/module/platform/menu-rows.d.ts +72 -0
- package/lib/typescript/module/platform/menu-rows.d.ts.map +1 -0
- package/lib/typescript/module/platform/sf-symbol.ios.d.ts +3 -0
- package/lib/typescript/module/platform/sf-symbol.ios.d.ts.map +1 -0
- package/lib/typescript/module/platform/values.d.ts +6 -0
- package/lib/typescript/module/platform/values.d.ts.map +1 -0
- package/lib/typescript/module/primitives.d.ts +272 -0
- package/lib/typescript/module/primitives.d.ts.map +1 -0
- package/lib/typescript/module/render.d.ts +25 -0
- package/lib/typescript/module/render.d.ts.map +1 -0
- package/lib/typescript/module/router/app-layout.d.ts +9 -0
- package/lib/typescript/module/router/app-layout.d.ts.map +1 -0
- package/lib/typescript/module/router/bar.d.ts +12 -0
- package/lib/typescript/module/router/bar.d.ts.map +1 -0
- package/lib/typescript/module/router/bar.ios.d.ts +11 -0
- package/lib/typescript/module/router/bar.ios.d.ts.map +1 -0
- package/lib/typescript/module/router/components.d.ts +41 -0
- package/lib/typescript/module/router/components.d.ts.map +1 -0
- package/lib/typescript/module/router/index.d.ts +8 -0
- package/lib/typescript/module/router/index.d.ts.map +1 -0
- package/lib/typescript/module/router/navigators.d.ts +5 -0
- package/lib/typescript/module/router/navigators.d.ts.map +1 -0
- package/lib/typescript/module/router/nodes.d.ts +75 -0
- package/lib/typescript/module/router/nodes.d.ts.map +1 -0
- package/lib/typescript/module/router/pager.d.ts +8 -0
- package/lib/typescript/module/router/pager.d.ts.map +1 -0
- package/lib/typescript/module/router/primary.d.ts +13 -0
- package/lib/typescript/module/router/primary.d.ts.map +1 -0
- package/lib/typescript/module/router/routes.d.ts +4 -0
- package/lib/typescript/module/router/routes.d.ts.map +1 -0
- package/lib/typescript/module/router/screen-header.d.ts +3 -0
- package/lib/typescript/module/router/screen-header.d.ts.map +1 -0
- package/lib/typescript/module/router/screen-header.ios.d.ts +9 -0
- package/lib/typescript/module/router/screen-header.ios.d.ts.map +1 -0
- package/lib/typescript/module/router/screen-host.d.ts +5 -0
- package/lib/typescript/module/router/screen-host.d.ts.map +1 -0
- package/lib/typescript/module/router/sheet-bloom.d.ts +12 -0
- package/lib/typescript/module/router/sheet-bloom.d.ts.map +1 -0
- package/lib/typescript/module/router/sheet-host.d.ts +2 -0
- package/lib/typescript/module/router/sheet-host.d.ts.map +1 -0
- package/lib/typescript/module/router/sheet-host.ios.d.ts +3 -0
- package/lib/typescript/module/router/sheet-host.ios.d.ts.map +1 -0
- package/lib/typescript/module/router/shell-panels.d.ts +9 -0
- package/lib/typescript/module/router/shell-panels.d.ts.map +1 -0
- package/lib/typescript/module/router/stack.d.ts +5 -0
- package/lib/typescript/module/router/stack.d.ts.map +1 -0
- package/lib/typescript/module/router/stack.ios.d.ts +5 -0
- package/lib/typescript/module/router/stack.ios.d.ts.map +1 -0
- package/lib/typescript/module/router/stack.web.d.ts +5 -0
- package/lib/typescript/module/router/stack.web.d.ts.map +1 -0
- package/lib/typescript/module/router/tabs.d.ts +2 -0
- package/lib/typescript/module/router/tabs.d.ts.map +1 -0
- package/lib/typescript/module/router/tabs.ios.d.ts +2 -0
- package/lib/typescript/module/router/tabs.ios.d.ts.map +1 -0
- package/lib/typescript/module/state-host.d.ts +44 -0
- package/lib/typescript/module/state-host.d.ts.map +1 -0
- package/lib/typescript/module/style.d.ts +268 -0
- package/lib/typescript/module/style.d.ts.map +1 -0
- package/lib/typescript/module/toast.d.ts +31 -0
- package/lib/typescript/module/toast.d.ts.map +1 -0
- package/lib/typescript/module/tokens.d.ts +446 -0
- package/lib/typescript/module/tokens.d.ts.map +1 -0
- package/lib/typescript/module/variants.d.ts +50 -0
- package/lib/typescript/module/variants.d.ts.map +1 -0
- package/lib/typescript/module/view.d.ts +29 -0
- package/lib/typescript/module/view.d.ts.map +1 -0
- package/lib/typescript/module/web-sheet.d.ts +78 -0
- package/lib/typescript/module/web-sheet.d.ts.map +1 -0
- package/package.json +122 -1
- package/spec/language.json +4863 -0
- package/src/__tests__/android-hosts.test.tsx +497 -0
- package/src/__tests__/chrome.test.tsx +594 -0
- package/src/__tests__/containers.test.tsx +177 -0
- package/src/__tests__/containers.types.test.ts +84 -0
- package/src/__tests__/controls.test.tsx +416 -0
- package/src/__tests__/inputs.test.tsx +243 -0
- package/src/__tests__/insets.test.tsx +55 -0
- package/src/__tests__/ios-hosts.test.tsx +285 -0
- package/src/__tests__/layers.test.ts +55 -0
- package/src/__tests__/layout.test.tsx +283 -0
- package/src/__tests__/list-paint.web.test.tsx +110 -0
- package/src/__tests__/menu-actions.test.tsx +90 -0
- package/src/__tests__/menu-actions.web.test.tsx +40 -0
- package/src/__tests__/menu-rows.test.ts +104 -0
- package/src/__tests__/motion.test.tsx +914 -0
- package/src/__tests__/motion.web.test.tsx +360 -0
- package/src/__tests__/node.test.ts +86 -0
- package/src/__tests__/overlays.test.tsx +200 -0
- package/src/__tests__/overlays.types.test.ts +25 -0
- package/src/__tests__/phases.test.ts +53 -0
- package/src/__tests__/render.test.tsx +587 -0
- package/src/__tests__/render.web.test.tsx +126 -0
- package/src/__tests__/router.android.test.tsx +501 -0
- package/src/__tests__/router.ios.test.tsx +174 -0
- package/src/__tests__/router.web.test.tsx +39 -0
- package/src/__tests__/screen-action.test.tsx +41 -0
- package/src/__tests__/sheet.ios.test.tsx +85 -0
- package/src/__tests__/spec.test.ts +1787 -0
- package/src/__tests__/ssr.web.test.tsx +80 -0
- package/src/__tests__/support/absent/@expo/ui/swift-ui/index.ts +3 -0
- package/src/__tests__/support/absent/@expo/ui/swift-ui/modifiers.ts +3 -0
- package/src/__tests__/support/absent/expo-blur.ts +3 -0
- package/src/__tests__/support/absent/expo-glass-effect.ts +3 -0
- package/src/__tests__/support/absent/expo-router-native-tabs.ts +3 -0
- package/src/__tests__/support/absent/expo-router-react-navigation.ts +3 -0
- package/src/__tests__/support/absent/expo-router.ts +3 -0
- package/src/__tests__/support/absent/expo.ts +3 -0
- package/src/__tests__/support/bloom-app-shell-hooks.ts +1 -0
- package/src/__tests__/support/bloom-avatar.ts +4 -0
- package/src/__tests__/support/bloom-components.ts +109 -0
- package/src/__tests__/support/bloom-containers.ts +30 -0
- package/src/__tests__/support/bloom-controls.ts +112 -0
- package/src/__tests__/support/bloom-design-tokens.ts +9 -0
- package/src/__tests__/support/bloom-hooks.ts +15 -0
- package/src/__tests__/support/bloom-icon-modules.ts +24 -0
- package/src/__tests__/support/bloom-icons.ts +13 -0
- package/src/__tests__/support/bloom-inputs.ts +27 -0
- package/src/__tests__/support/bloom-motion.ts +26 -0
- package/src/__tests__/support/bloom-motion.web.ts +26 -0
- package/src/__tests__/support/bloom-overlays.ts +26 -0
- package/src/__tests__/support/bloom-portal.ts +3 -0
- package/src/__tests__/support/bloom-products.ts +314 -0
- package/src/__tests__/support/bloom-router.ts +59 -0
- package/src/__tests__/support/bloom-runtime.ts +19 -0
- package/src/__tests__/support/bloom-shapes.ts +7 -0
- package/src/__tests__/support/bloom-styles.ts +20 -0
- package/src/__tests__/support/bloom-theme.ts +39 -0
- package/src/__tests__/support/bloom-typography.ts +26 -0
- package/src/__tests__/support/mount.ts +49 -0
- package/src/__tests__/support/react-native-gesture-handler.ts +23 -0
- package/src/__tests__/support/react-native-reanimated.ts +69 -0
- package/src/__tests__/support/react-native.ts +17 -0
- package/src/__tests__/tokens.test.ts +65 -0
- package/src/__tests__/variants.test.tsx +509 -0
- package/src/__tests__/variants.web.test.tsx +349 -0
- package/src/__tests__/web-hosts.test.tsx +125 -0
- package/src/__tests__/workspace-bloom.test.ts +21 -0
- package/src/binding.ts +35 -0
- package/src/chrome/command-host.tsx +62 -0
- package/src/chrome/defined.ts +13 -0
- package/src/chrome/layout-hosts.tsx +173 -0
- package/src/chrome/page-footer-host.tsx +30 -0
- package/src/chrome/rail-host.tsx +47 -0
- package/src/chrome/safe-area-inset.tsx +127 -0
- package/src/chrome/scroll-view-host.tsx +197 -0
- package/src/chrome/settings-host.tsx +82 -0
- package/src/chrome/sidebar-host.tsx +240 -0
- package/src/controls/accordion.tsx +91 -0
- package/src/controls/activity-feed.tsx +47 -0
- package/src/controls/activity-heatmap.tsx +74 -0
- package/src/controls/address.tsx +81 -0
- package/src/controls/agent-avatar.tsx +76 -0
- package/src/controls/agent-chat.tsx +98 -0
- package/src/controls/agent-creator.tsx +65 -0
- package/src/controls/agent-reply.tsx +72 -0
- package/src/controls/agents.tsx +415 -0
- package/src/controls/ai-chat.tsx +274 -0
- package/src/controls/ai-profile-card.tsx +56 -0
- package/src/controls/ambient-photo.tsx +39 -0
- package/src/controls/animated-check.tsx +61 -0
- package/src/controls/avatar-flight.tsx +47 -0
- package/src/controls/booking.tsx +113 -0
- package/src/controls/breadcrumb.tsx +79 -0
- package/src/controls/calendar.tsx +97 -0
- package/src/controls/call-ui.tsx +265 -0
- package/src/controls/card-form.tsx +130 -0
- package/src/controls/carousel.tsx +139 -0
- package/src/controls/cart-panel.tsx +146 -0
- package/src/controls/category-bar.tsx +63 -0
- package/src/controls/chart-cards.tsx +365 -0
- package/src/controls/chat-composer.tsx +342 -0
- package/src/controls/chat-people.tsx +101 -0
- package/src/controls/chat.tsx +659 -0
- package/src/controls/checkout-sheet.tsx +47 -0
- package/src/controls/checkout-summary.tsx +81 -0
- package/src/controls/choice-list.tsx +121 -0
- package/src/controls/code.tsx +121 -0
- package/src/controls/collapsible.tsx +39 -0
- package/src/controls/color-swatch-picker.tsx +52 -0
- package/src/controls/composer-panel.tsx +141 -0
- package/src/controls/composition-bar.tsx +85 -0
- package/src/controls/confirmation-dialog.tsx +66 -0
- package/src/controls/containers.tsx +924 -0
- package/src/controls/context-menu.tsx +136 -0
- package/src/controls/creator-studio.tsx +313 -0
- package/src/controls/crm.tsx +135 -0
- package/src/controls/dashboard-cards.tsx +81 -0
- package/src/controls/data-table.tsx +287 -0
- package/src/controls/date-picker.tsx +251 -0
- package/src/controls/delivery-slot.tsx +122 -0
- package/src/controls/draw.ts +145 -0
- package/src/controls/drop-zone.tsx +65 -0
- package/src/controls/eviction.tsx +56 -0
- package/src/controls/expandable-text.tsx +63 -0
- package/src/controls/fact-strip.tsx +71 -0
- package/src/controls/file-upload.tsx +62 -0
- package/src/controls/generic.tsx +214 -0
- package/src/controls/glass-group.tsx +43 -0
- package/src/controls/home-search.tsx +117 -0
- package/src/controls/hover-card.tsx +70 -0
- package/src/controls/index.ts +252 -0
- package/src/controls/input-group.tsx +66 -0
- package/src/controls/input-otp.tsx +49 -0
- package/src/controls/inputs.tsx +840 -0
- package/src/controls/link-preview.tsx +37 -0
- package/src/controls/list.tsx +428 -0
- package/src/controls/listing-actions.tsx +135 -0
- package/src/controls/listing-card.tsx +99 -0
- package/src/controls/listing-editor.tsx +90 -0
- package/src/controls/listings.tsx +198 -0
- package/src/controls/lockup.tsx +69 -0
- package/src/controls/logistics.tsx +356 -0
- package/src/controls/lyrics.tsx +64 -0
- package/src/controls/mail.tsx +213 -0
- package/src/controls/map-chrome.tsx +108 -0
- package/src/controls/markdown.tsx +94 -0
- package/src/controls/media-cards.tsx +276 -0
- package/src/controls/media-controls.tsx +73 -0
- package/src/controls/media-flight.tsx +114 -0
- package/src/controls/media-inset-border.tsx +49 -0
- package/src/controls/media-player.tsx +287 -0
- package/src/controls/media.tsx +172 -0
- package/src/controls/menu-item.tsx +87 -0
- package/src/controls/menubar.tsx +134 -0
- package/src/controls/message-bubble.tsx +124 -0
- package/src/controls/multi-agent-chat.tsx +46 -0
- package/src/controls/music-library.tsx +195 -0
- package/src/controls/note-card.tsx +72 -0
- package/src/controls/notification.tsx +86 -0
- package/src/controls/offering-badge.tsx +41 -0
- package/src/controls/order-confirmation.tsx +41 -0
- package/src/controls/order-status.tsx +68 -0
- package/src/controls/overlays.tsx +373 -0
- package/src/controls/payment-method.tsx +91 -0
- package/src/controls/payment-status.tsx +63 -0
- package/src/controls/phone-input.tsx +68 -0
- package/src/controls/place-reviews.tsx +46 -0
- package/src/controls/places.tsx +209 -0
- package/src/controls/price-breakdown.tsx +63 -0
- package/src/controls/product.ts +142 -0
- package/src/controls/project-board.tsx +130 -0
- package/src/controls/property-insights.tsx +49 -0
- package/src/controls/queue-panel.tsx +73 -0
- package/src/controls/rating.tsx +201 -0
- package/src/controls/route-stops.tsx +40 -0
- package/src/controls/settings.tsx +206 -0
- package/src/controls/share-sheet.tsx +56 -0
- package/src/controls/slider.tsx +105 -0
- package/src/controls/social-button.tsx +68 -0
- package/src/controls/sortable-chip-row.tsx +58 -0
- package/src/controls/sortable-media.tsx +61 -0
- package/src/controls/spinner-icon.tsx +33 -0
- package/src/controls/stat-bar.tsx +243 -0
- package/src/controls/stat-cards.tsx +44 -0
- package/src/controls/stay-filters.tsx +273 -0
- package/src/controls/stay-search.tsx +114 -0
- package/src/controls/stepper.tsx +89 -0
- package/src/controls/table.tsx +164 -0
- package/src/controls/tag-field.tsx +71 -0
- package/src/controls/task-list.tsx +34 -0
- package/src/controls/tenancy.tsx +113 -0
- package/src/controls/toolbar-group.tsx +46 -0
- package/src/controls/tooltip.tsx +64 -0
- package/src/controls/track-list.tsx +238 -0
- package/src/controls/vendor-card.tsx +48 -0
- package/src/controls/video-playback.tsx +71 -0
- package/src/controls/video-view.tsx +35 -0
- package/src/controls/view-that-fits.tsx +118 -0
- package/src/controls/viewport.tsx +30 -0
- package/src/controls/voice.tsx +61 -0
- package/src/controls/web-search.tsx +34 -0
- package/src/controls/zoomable-media-gallery.tsx +137 -0
- package/src/depth-stack.tsx +102 -0
- package/src/env.ts +180 -0
- package/src/environment.ts +102 -0
- package/src/generated/sf-symbols.generated.ts +210 -0
- package/src/generated/spec.generated.ts +52742 -0
- package/src/generated/web-sheet.generated.ts +3383 -0
- package/src/glass.ts +88 -0
- package/src/index.ts +1921 -0
- package/src/modifier.ts +35 -0
- package/src/motion/keyframes.ts +90 -0
- package/src/motion/motion-node.tsx +631 -0
- package/src/motion/namespace.ts +52 -0
- package/src/motion/phases.ts +86 -0
- package/src/motion/text-roll.tsx +239 -0
- package/src/motion/tokens.ts +81 -0
- package/src/motion/tracks.ts +128 -0
- package/src/motion/transition.ts +48 -0
- package/src/motion/values.ts +88 -0
- package/src/node.ts +5648 -0
- package/src/paint.ts +331 -0
- package/src/painted-host.ts +47 -0
- package/src/platform/Glass.stories.tsx +109 -0
- package/src/platform/Platform.stories.tsx +128 -0
- package/src/platform/SwiftUI.stories.tsx +113 -0
- package/src/platform/bottom-bar-host.tsx +63 -0
- package/src/platform/confirmation-host.android.tsx +99 -0
- package/src/platform/confirmation-host.ios.tsx +114 -0
- package/src/platform/confirmation-host.web.tsx +54 -0
- package/src/platform/glass-group-host.android.tsx +46 -0
- package/src/platform/glass-group-host.ios.tsx +239 -0
- package/src/platform/glass-group-host.types.ts +34 -0
- package/src/platform/glass-group-host.web.ts +14 -0
- package/src/platform/glass-host.android.tsx +53 -0
- package/src/platform/glass-host.ios.tsx +118 -0
- package/src/platform/glass-host.types.ts +41 -0
- package/src/platform/glass-host.web.ts +10 -0
- package/src/platform/header-host.ios.tsx +252 -0
- package/src/platform/header-host.tsx +2 -0
- package/src/platform/header-page.tsx +101 -0
- package/src/platform/host.types.ts +25 -0
- package/src/platform/lens-glass.ts +35 -0
- package/src/platform/lens-group.tsx +103 -0
- package/src/platform/lens.ts +121 -0
- package/src/platform/menu-actions.tsx +87 -0
- package/src/platform/menu-dropdown.tsx +182 -0
- package/src/platform/menu-host.android.tsx +218 -0
- package/src/platform/menu-host.ios.tsx +151 -0
- package/src/platform/menu-host.web.tsx +2 -0
- package/src/platform/menu-rows.ts +219 -0
- package/src/platform/sf-symbol.ios.ts +10 -0
- package/src/platform/values.ts +19 -0
- package/src/primitives.ts +562 -0
- package/src/render.tsx +3377 -0
- package/src/router/app-layout.tsx +91 -0
- package/src/router/bar.ios.tsx +14 -0
- package/src/router/bar.tsx +44 -0
- package/src/router/components.tsx +88 -0
- package/src/router/index.ts +7 -0
- package/src/router/navigators.tsx +22 -0
- package/src/router/nodes.ts +111 -0
- package/src/router/pager.ts +10 -0
- package/src/router/primary.ts +17 -0
- package/src/router/routes.ts +10 -0
- package/src/router/screen-header.ios.tsx +8 -0
- package/src/router/screen-header.tsx +4 -0
- package/src/router/screen-host.tsx +169 -0
- package/src/router/sheet-bloom.tsx +114 -0
- package/src/router/sheet-host.ios.tsx +128 -0
- package/src/router/sheet-host.tsx +2 -0
- package/src/router/shell-panels.ts +93 -0
- package/src/router/stack.ios.tsx +30 -0
- package/src/router/stack.tsx +32 -0
- package/src/router/stack.web.tsx +14 -0
- package/src/router/tabs.ios.tsx +50 -0
- package/src/router/tabs.tsx +17 -0
- package/src/state-host.tsx +174 -0
- package/src/stories/Parity.stories.tsx +193 -0
- package/src/stories/ParityFrame.stories.tsx +30 -0
- package/src/stories/parity-families.ts +256 -0
- package/src/style.ts +1236 -0
- package/src/toast.ts +46 -0
- package/src/tokens.ts +642 -0
- package/src/variants.ts +120 -0
- package/src/view.ts +49 -0
- package/src/web-sheet.ts +247 -0
- package/README.md +0 -1
package/src/style.ts
ADDED
|
@@ -0,0 +1,1236 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import type { ChildSpacing, FrameSpec, GlassValue, Modifier, PositionEdges } from './node';
|
|
4
|
+
import { SHADOW_BOX, bloomShadowStyle, type ShadowRole } from '@oxy.so/bloom/design-tokens';
|
|
5
|
+
import { surfaceStyle } from '@oxy.so/bloom/shapes';
|
|
6
|
+
import { fontFamilyStyle, type TypeScaleVariant } from '@oxy.so/bloom/typography';
|
|
7
|
+
|
|
8
|
+
import { COLORS, ENVIRONMENT_DEFAULTS, FONT_SIZE, LAYER_RANK } from './generated/spec.generated';
|
|
9
|
+
import { GEOMETRY_VAR, WEB_CLASS } from './generated/web-sheet.generated';
|
|
10
|
+
import { resolveRotation, resolveScale } from './motion/tokens';
|
|
11
|
+
import {
|
|
12
|
+
GEOMETRY_KEYS,
|
|
13
|
+
composeGeometry,
|
|
14
|
+
type Geometry,
|
|
15
|
+
type GeometryKey,
|
|
16
|
+
type Paint,
|
|
17
|
+
type PaintVariant,
|
|
18
|
+
} from './paint';
|
|
19
|
+
import { compareLive, type LiveCondition, type Planned } from './variants';
|
|
20
|
+
import { adoptInk, adoptVariantClasses, inkClass, variantSuffix } from './web-sheet';
|
|
21
|
+
import {
|
|
22
|
+
ALIGNMENT,
|
|
23
|
+
OPACITY,
|
|
24
|
+
SHRINK,
|
|
25
|
+
FLEX,
|
|
26
|
+
Z_INDEX,
|
|
27
|
+
resolveBorderWidth,
|
|
28
|
+
INFINITE_RADIUS,
|
|
29
|
+
resolveCorner,
|
|
30
|
+
rampStep,
|
|
31
|
+
resolveFont,
|
|
32
|
+
resolveLength,
|
|
33
|
+
resolveSpace,
|
|
34
|
+
type Alignment,
|
|
35
|
+
type Axis,
|
|
36
|
+
type BorderEdge,
|
|
37
|
+
type CornerName,
|
|
38
|
+
type CornerSide,
|
|
39
|
+
type LengthToken,
|
|
40
|
+
type Justify,
|
|
41
|
+
type OverlayAlignment,
|
|
42
|
+
type ZIndexName,
|
|
43
|
+
type ShadowName,
|
|
44
|
+
type ColorName,
|
|
45
|
+
type AppToken,
|
|
46
|
+
type ColorToken,
|
|
47
|
+
type InkToken,
|
|
48
|
+
type CornerCurve,
|
|
49
|
+
type OpacityName,
|
|
50
|
+
type Edge,
|
|
51
|
+
type FontFamilyName,
|
|
52
|
+
type FontName,
|
|
53
|
+
type TrackingName,
|
|
54
|
+
type LeadingToken,
|
|
55
|
+
type ShrinkPriority,
|
|
56
|
+
type FlexName,
|
|
57
|
+
type HitTesting,
|
|
58
|
+
type PaddingToken,
|
|
59
|
+
type SpaceToken,
|
|
60
|
+
type TextAlignment,
|
|
61
|
+
type TextCase,
|
|
62
|
+
type WordBreak,
|
|
63
|
+
type TypeFamily,
|
|
64
|
+
type WeightName,
|
|
65
|
+
} from './tokens';
|
|
66
|
+
|
|
67
|
+
const IS_WEB = Platform.OS === 'web';
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Style resolution. A style is resolved once per key into values and colour
|
|
71
|
+
* ROLES, never colours: the theme is not an input, so one cache serves every
|
|
72
|
+
* theme and a theme switch re-resolves nothing here. The role is painted
|
|
73
|
+
* where the platform can do it cheapest:
|
|
74
|
+
*
|
|
75
|
+
* - native: a `Paint` descriptor, which the `Painted` leaf turns into the
|
|
76
|
+
* theme's colour (so a theme switch re-renders those leaves only);
|
|
77
|
+
* - web: the role's CSS variable, in an atomic class from the generated sheet,
|
|
78
|
+
* so a theme switch re-renders nothing at all.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/** A colour role inside a resolved style, at its opacity if it names one. Interned, so a style compares by identity. */
|
|
82
|
+
export interface RoleRef {
|
|
83
|
+
readonly token: ColorToken;
|
|
84
|
+
readonly role: ColorName;
|
|
85
|
+
readonly opacity: number | undefined;
|
|
86
|
+
}
|
|
87
|
+
const ROLE_REFS = new Map<ColorToken, RoleRef>();
|
|
88
|
+
|
|
89
|
+
export function role(token: ColorToken): RoleRef {
|
|
90
|
+
let ref = ROLE_REFS.get(token);
|
|
91
|
+
if (ref === undefined) {
|
|
92
|
+
const [name, amount] = token.split('/') as [ColorName, OpacityName | undefined];
|
|
93
|
+
ref = Object.freeze({
|
|
94
|
+
token,
|
|
95
|
+
role: name,
|
|
96
|
+
opacity: amount === undefined ? undefined : OPACITY[amount],
|
|
97
|
+
});
|
|
98
|
+
ROLE_REFS.set(token, ref);
|
|
99
|
+
}
|
|
100
|
+
return ref;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* A role's web paint: its CSS variable (or fixed colour), and at an opacity a
|
|
105
|
+
* custom property holding the role mixed with transparent in sRGB
|
|
106
|
+
* (`--bl-primary-70`): exactly the role's colour at that alpha, as Bloom's
|
|
107
|
+
* `withAlpha` draws it (Tailwind's `/70` mixes in oklab, which paints the same
|
|
108
|
+
* pixels and computes as `oklab()`). react-native-web drops a colour it
|
|
109
|
+
* cannot parse unless it is a `var()` (its `normalizeColor`), so the mix itself
|
|
110
|
+
* is declared in the language's ink sheet (web-sheet.ts) and the style names it.
|
|
111
|
+
*/
|
|
112
|
+
export function webInk(ref: RoleRef): string {
|
|
113
|
+
const web = COLORS[ref.role].web;
|
|
114
|
+
if (ref.opacity === undefined) return web;
|
|
115
|
+
const name = `--bl-${ref.token.replace('/', '-')}`;
|
|
116
|
+
adoptInk(
|
|
117
|
+
name,
|
|
118
|
+
`color-mix(in srgb, ${web} ${Number((ref.opacity * 100).toFixed(4))}%, transparent)`,
|
|
119
|
+
);
|
|
120
|
+
return `var(${name})`;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** A value a resolved style holds: a number, a string, a role, or a structured value (a shadow's offset, a transform). */
|
|
124
|
+
export type StyleValue = number | string | RoleRef | object;
|
|
125
|
+
/** A style as resolved: style properties to numbers, strings, roles or structured values. */
|
|
126
|
+
export type Resolved = Record<string, StyleValue>;
|
|
127
|
+
|
|
128
|
+
/** A style's live variants, in the order they apply (`compareLive`): what each condition overrides. */
|
|
129
|
+
export type VariantStyles = readonly (readonly [LiveCondition, Resolved])[];
|
|
130
|
+
|
|
131
|
+
/** Variant styles gathered from several sources (a layer, the placement…), in the order they apply. */
|
|
132
|
+
export function joinVariants(...lists: (VariantStyles | undefined)[]): VariantStyles {
|
|
133
|
+
const byCondition = new Map<LiveCondition, Resolved>();
|
|
134
|
+
for (const list of lists) {
|
|
135
|
+
for (const [condition, style] of list ?? []) {
|
|
136
|
+
byCondition.set(condition, Object.assign(byCondition.get(condition) ?? {}, style));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return [...byCondition.keys()]
|
|
140
|
+
.sort(compareLive)
|
|
141
|
+
.map((condition) => [condition, byCondition.get(condition) as Resolved] as const);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* What a host is handed. `style` is final; `paint`, when present, names the
|
|
146
|
+
* properties a `Painted` leaf must fill from the theme before drawing (and,
|
|
147
|
+
* with variants, what a `Conditioned` leaf picks from the environment).
|
|
148
|
+
*/
|
|
149
|
+
export interface StyleOut {
|
|
150
|
+
readonly style: unknown;
|
|
151
|
+
readonly paint: Paint | undefined;
|
|
152
|
+
/** The web: the host reads its style as an object (a Bloom component), so it takes no class and tracks its state in JS. */
|
|
153
|
+
readonly object?: true;
|
|
154
|
+
/**
|
|
155
|
+
* The web: a language host that tracks its state in JS (around a Bloom
|
|
156
|
+
* component) is also the anchor the CSS of the views it holds answers.
|
|
157
|
+
*/
|
|
158
|
+
readonly anchor?: true;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* `host`: a React Native host the language owns (View, Text, Pressable),
|
|
163
|
+
* which takes classes on the web. `component`: a Bloom component the
|
|
164
|
+
* language draws (Avatar, Button, Surface…), which reads its style as an
|
|
165
|
+
* object, so it gets one on every platform (with live variants, a
|
|
166
|
+
* `Conditioned` leaf picks it, on the web too). `material`: a Bloom material that
|
|
167
|
+
* computes with its fill (`BlurIsland` reads its `backgroundColor`), so its
|
|
168
|
+
* roles are painted from the theme on every platform, never a CSS variable.
|
|
169
|
+
*/
|
|
170
|
+
export type Target = 'host' | 'component' | 'material';
|
|
171
|
+
|
|
172
|
+
const NO_STYLE: StyleOut = Object.freeze({ style: undefined, paint: undefined });
|
|
173
|
+
const NO_OBJECT_STYLE: StyleOut = Object.freeze({
|
|
174
|
+
style: undefined,
|
|
175
|
+
paint: undefined,
|
|
176
|
+
object: true,
|
|
177
|
+
});
|
|
178
|
+
const cache = new Map<string, StyleOut>();
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The style for `key`, built once and handed back by lookup on every later
|
|
182
|
+
* render. `variants` are its live variants (the key names them too).
|
|
183
|
+
*/
|
|
184
|
+
export function cachedStyle(
|
|
185
|
+
target: Target,
|
|
186
|
+
key: string,
|
|
187
|
+
build: () => Resolved,
|
|
188
|
+
variants?: () => VariantStyles,
|
|
189
|
+
): StyleOut {
|
|
190
|
+
const id = `${target}|${key}`;
|
|
191
|
+
let out = cache.get(id);
|
|
192
|
+
if (out === undefined) {
|
|
193
|
+
out = serialize(build(), target, variants?.() ?? []);
|
|
194
|
+
cache.set(id, out);
|
|
195
|
+
}
|
|
196
|
+
return out;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** What a view paints with: a role as its `RoleRef`, an app's own colour as its hex. */
|
|
200
|
+
export function ink(token: InkToken): RoleRef | string {
|
|
201
|
+
return typeof token === 'string' ? role(token) : token.value;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** An app's own colour (`defineTokens({ color })`), not a Bloom role. */
|
|
205
|
+
export function isAppColor(value: unknown): value is AppToken<'color'> {
|
|
206
|
+
return typeof value === 'object' && value !== null && (value as AppToken).scale === 'color';
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function isRole(value: StyleValue): value is RoleRef {
|
|
210
|
+
return typeof value === 'object' && (value as Partial<RoleRef>).role !== undefined;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** A resolved style as a native host takes it: its values, and the properties painted from roles. */
|
|
214
|
+
function split(resolved: Resolved): {
|
|
215
|
+
style: object;
|
|
216
|
+
styleRoles: (readonly [string, ColorName, number?])[];
|
|
217
|
+
} {
|
|
218
|
+
const values: Record<string, StyleValue> = {};
|
|
219
|
+
const roles: (readonly [string, ColorName, number?])[] = [];
|
|
220
|
+
for (const key of Object.keys(resolved)) {
|
|
221
|
+
const value = resolved[key] as StyleValue;
|
|
222
|
+
if (isRole(value))
|
|
223
|
+
roles.push(
|
|
224
|
+
value.opacity === undefined ? [key, value.role] : [key, value.role, value.opacity],
|
|
225
|
+
);
|
|
226
|
+
else values[key] = value;
|
|
227
|
+
}
|
|
228
|
+
return { style: Object.freeze(values), styleRoles: roles };
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function serialize(resolved: Resolved, target: Target, variants: VariantStyles): StyleOut {
|
|
232
|
+
const keys = Object.keys(resolved);
|
|
233
|
+
if (IS_WEB && target === 'component') {
|
|
234
|
+
// A Bloom component reads its style as an object, which CSS cannot vary:
|
|
235
|
+
// its live variants are picked by a `Conditioned` leaf, as native's are,
|
|
236
|
+
// each role its CSS variable as in the component's inline style.
|
|
237
|
+
if (keys.length === 0 && variants.length === 0) return NO_OBJECT_STYLE;
|
|
238
|
+
const out =
|
|
239
|
+
variants.length === 0
|
|
240
|
+
? { style: Object.freeze(composeGeometry(inked(resolved))), paint: undefined }
|
|
241
|
+
: paintOut(
|
|
242
|
+
inked(resolved),
|
|
243
|
+
variants.map(([condition, styled]) => [condition, inked(styled)] as const),
|
|
244
|
+
);
|
|
245
|
+
return { ...out, object: true };
|
|
246
|
+
}
|
|
247
|
+
if (keys.length === 0 && variants.length === 0) return NO_STYLE;
|
|
248
|
+
if (IS_WEB && target !== 'material') {
|
|
249
|
+
// A variant value with no class (an app's own token: its brand colour, its
|
|
250
|
+
// space) cannot vary in CSS. The view's variants are then picked in JS, as
|
|
251
|
+
// a Bloom component's are: a `Conditioned` leaf, its box tracking its state
|
|
252
|
+
// and anchoring the CSS of the views inside it.
|
|
253
|
+
if (variants.some(([, styled]) => Object.keys(styled).some((key) => !hasClass(key, styled))))
|
|
254
|
+
return {
|
|
255
|
+
...paintOut(
|
|
256
|
+
inked(resolved),
|
|
257
|
+
variants.map(([condition, styled]) => [condition, inked(styled)] as const),
|
|
258
|
+
),
|
|
259
|
+
object: true,
|
|
260
|
+
anchor: true,
|
|
261
|
+
};
|
|
262
|
+
return { style: webStyle(resolved, keys, variants), paint: undefined };
|
|
263
|
+
}
|
|
264
|
+
return paintOut(resolved, variants);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/** A resolved style with each role as its web paint (its CSS variable). */
|
|
268
|
+
function inked(resolved: Resolved): Resolved {
|
|
269
|
+
const out: Resolved = {};
|
|
270
|
+
for (const key of Object.keys(resolved)) {
|
|
271
|
+
const value = resolved[key] as StyleValue;
|
|
272
|
+
out[key] = isRole(value) ? webInk(value) : value;
|
|
273
|
+
}
|
|
274
|
+
return out;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* The native form (and a web component's with variants): values, the roles a
|
|
279
|
+
* `Painted` leaf paints, the variants a `Conditioned` one picks. Geometry is
|
|
280
|
+
* composed into one transform here, or, with variants, by the leaf once it
|
|
281
|
+
* has the components that hold.
|
|
282
|
+
*/
|
|
283
|
+
function paintOut(resolved: Resolved, variants: VariantStyles): StyleOut {
|
|
284
|
+
const { style: values, styleRoles } = split(resolved);
|
|
285
|
+
if (variants.length > 0) {
|
|
286
|
+
const varied: PaintVariant[] = variants.map(([condition, styled]) => ({
|
|
287
|
+
condition,
|
|
288
|
+
...split(styled),
|
|
289
|
+
}));
|
|
290
|
+
const base = Object.keys(resolved).length > 0 ? values : undefined;
|
|
291
|
+
return {
|
|
292
|
+
style: undefined,
|
|
293
|
+
paint: { style: base, styleRoles, propRoles: [], variants: varied },
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
const style = composeGeometry(values);
|
|
297
|
+
if (styleRoles.length === 0) return { style, paint: undefined };
|
|
298
|
+
return { style: undefined, paint: { style, styleRoles, propRoles: [] } };
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
const GEOMETRY_UNIT: Readonly<Record<GeometryKey, string>> = {
|
|
302
|
+
translateX: 'px',
|
|
303
|
+
translateY: 'px',
|
|
304
|
+
rotate: 'deg',
|
|
305
|
+
scale: '',
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* The web form: react-native-web `$$css` class objects for every value the
|
|
310
|
+
* generated sheet has a class for (a role at an opacity: the role's class
|
|
311
|
+
* painting its ink, `inkClass`), and an inline object for the rest (an app
|
|
312
|
+
* token's own number). A Bloom component's style is an object
|
|
313
|
+
* (`serialize`).
|
|
314
|
+
*/
|
|
315
|
+
function classOf(key: string, value: StyleValue): string | undefined {
|
|
316
|
+
if (!isRole(value)) return WEB_CLASS[`${key}:${String(value)}`];
|
|
317
|
+
if (value.opacity === undefined) return WEB_CLASS[`${key}:@${value.token}`];
|
|
318
|
+
// A role at an opacity: the role's class, painting its ink (web-sheet.ts).
|
|
319
|
+
const base = WEB_CLASS[`${key}:@${value.role}`];
|
|
320
|
+
return base === undefined
|
|
321
|
+
? undefined
|
|
322
|
+
: inkClass(base, value.token, COLORS[value.role].web, webInk(value));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
const hasClass = (key: string, styled: Resolved): boolean =>
|
|
326
|
+
classOf(key, styled[key] as StyleValue) !== undefined;
|
|
327
|
+
|
|
328
|
+
function webStyle(resolved: Resolved, keys: string[], variants: VariantStyles): unknown {
|
|
329
|
+
let classes: Record<string, string | boolean> | undefined;
|
|
330
|
+
let inline: Record<string, StyleValue> | undefined;
|
|
331
|
+
for (const key of keys) {
|
|
332
|
+
const value = resolved[key] as StyleValue;
|
|
333
|
+
const name = classOf(key, value);
|
|
334
|
+
if (name !== undefined) {
|
|
335
|
+
classes ??= { $$css: true };
|
|
336
|
+
classes[key] = name;
|
|
337
|
+
} else if (key in GEOMETRY_VAR) {
|
|
338
|
+
// A component with no class (an app token's offset) is its custom property, inline.
|
|
339
|
+
inline ??= {};
|
|
340
|
+
inline[GEOMETRY_VAR[key as GeometryKey]] =
|
|
341
|
+
`${String(value)}${GEOMETRY_UNIT[key as GeometryKey]}`;
|
|
342
|
+
} else {
|
|
343
|
+
inline ??= {};
|
|
344
|
+
inline[key] = isRole(value) ? webInk(value) : value;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
// Geometry: one custom property per component (above, and in each variant),
|
|
348
|
+
// composed by the one transform of the components the view has.
|
|
349
|
+
const components = GEOMETRY_KEYS.filter((key) => resolved[key] !== undefined);
|
|
350
|
+
if (components.length > 0) {
|
|
351
|
+
classes ??= { $$css: true };
|
|
352
|
+
classes.transform = WEB_CLASS[`transform:${components.join('+')}`] as string;
|
|
353
|
+
}
|
|
354
|
+
// A variant is the same class under its condition's CSS, keyed apart from the
|
|
355
|
+
// base so styleq keeps both; its rule reaches the page with it (web-sheet.ts).
|
|
356
|
+
for (const [condition, styled] of variants) {
|
|
357
|
+
const names: string[] = [];
|
|
358
|
+
for (const key of Object.keys(styled)) {
|
|
359
|
+
// Every value has a class here (`serialize` sends the rest to a JS-picked style).
|
|
360
|
+
const name = classOf(key, styled[key] as StyleValue) as string;
|
|
361
|
+
names.push(name);
|
|
362
|
+
classes ??= { $$css: true };
|
|
363
|
+
classes[`${key}@${condition}`] = `${name}-${variantSuffix(condition)}`;
|
|
364
|
+
}
|
|
365
|
+
adoptVariantClasses(condition, names);
|
|
366
|
+
}
|
|
367
|
+
const parts = [classes, inline].filter((part) => part !== undefined).map(Object.freeze);
|
|
368
|
+
return parts.length === 1 ? parts[0] : Object.freeze(parts);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// ── Layers ───────────────────────────────────────────────────────
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The modifiers that shape a box. Within one React Native view their effects
|
|
375
|
+
* stack in the spec's layer order (padding inside the frame, the fill behind
|
|
376
|
+
* both, the border on it, the corner clipping all of that, the opacity over
|
|
377
|
+
* the whole), so a chain that follows the order is ONE view, and a modifier
|
|
378
|
+
* that comes against it (a padding after a background) starts a new view
|
|
379
|
+
* around the previous ones. That is how modifier order keeps its meaning
|
|
380
|
+
* without a view per modifier.
|
|
381
|
+
*/
|
|
382
|
+
export type LayerModifier = Extract<Modifier, { kind: keyof typeof LAYER_RANK }>;
|
|
383
|
+
|
|
384
|
+
export interface Layer {
|
|
385
|
+
readonly modifiers: LayerModifier[];
|
|
386
|
+
/** What variants change in this view: each over the values the chain set before it. */
|
|
387
|
+
readonly variants: [Planned, LayerModifier][];
|
|
388
|
+
key: string;
|
|
389
|
+
rank: number;
|
|
390
|
+
edges: number;
|
|
391
|
+
glass: GlassValue | undefined;
|
|
392
|
+
/** A `corner('concentric')` layer: Bloom's concentric geometry draws it (`ConcentricView`, or a glass Surface). */
|
|
393
|
+
concentric: boolean;
|
|
394
|
+
/** The layer's `cornerCurve`, which a glass Surface takes as its prop. */
|
|
395
|
+
curve: CornerCurve | undefined;
|
|
396
|
+
/** A `blur()` layer: Bloom's `BlurIsland` draws it. */
|
|
397
|
+
blur: boolean;
|
|
398
|
+
/** Views drawn over (and, `behind`, under) what the layer holds: \`overlay()\` and \`background(view)\`. */
|
|
399
|
+
overlays: Extract<Modifier, { kind: 'overlay' }>[];
|
|
400
|
+
/** The corners the layer's `corner()`s round, a bit each (`CORNER_BITS`). */
|
|
401
|
+
corners: number;
|
|
402
|
+
/**
|
|
403
|
+
* A shadow layer's outline: the corners of the clipped box it is drawn around.
|
|
404
|
+
* A shadow never shares a view with a corner's clip (iOS clips a view's own
|
|
405
|
+
* shadow to its bounds), so it is a view of its own with the same radii.
|
|
406
|
+
*/
|
|
407
|
+
follows: readonly CornerModifier[];
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
type CornerModifier = Extract<Modifier, { kind: 'corner' }>;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Each corner a `corner()` side rounds, a bit each: top-leading, top-trailing,
|
|
414
|
+
* bottom-leading, bottom-trailing, which follow the reading direction, then
|
|
415
|
+
* top-left, top-right, bottom-left, bottom-right, which do not (Tailwind's
|
|
416
|
+
* `rounded-l`, `rounded-tl`…, as NativeWind writes them).
|
|
417
|
+
*/
|
|
418
|
+
const CORNER_BITS: Record<CornerSide, number> = {
|
|
419
|
+
all: 0b1111,
|
|
420
|
+
top: 0b0011,
|
|
421
|
+
bottom: 0b1100,
|
|
422
|
+
leading: 0b0101,
|
|
423
|
+
trailing: 0b1010,
|
|
424
|
+
'top-leading': 0b0001,
|
|
425
|
+
'top-trailing': 0b0010,
|
|
426
|
+
'bottom-leading': 0b0100,
|
|
427
|
+
'bottom-trailing': 0b1000,
|
|
428
|
+
left: 0b1010000,
|
|
429
|
+
right: 0b10100000,
|
|
430
|
+
'top-left': 0b10000,
|
|
431
|
+
'top-right': 0b100000,
|
|
432
|
+
'bottom-left': 0b1000000,
|
|
433
|
+
'bottom-right': 0b10000000,
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
/** Each corner's radius: leading and trailing follow the reading direction, left and right are physical. */
|
|
437
|
+
const CORNER_RADIUS: readonly (readonly [number, string])[] = [
|
|
438
|
+
[0b0001, 'borderTopStartRadius'],
|
|
439
|
+
[0b0010, 'borderTopEndRadius'],
|
|
440
|
+
[0b0100, 'borderBottomStartRadius'],
|
|
441
|
+
[0b1000, 'borderBottomEndRadius'],
|
|
442
|
+
[0b10000, 'borderTopLeftRadius'],
|
|
443
|
+
[0b100000, 'borderTopRightRadius'],
|
|
444
|
+
[0b1000000, 'borderBottomLeftRadius'],
|
|
445
|
+
[0b10000000, 'borderBottomRightRadius'],
|
|
446
|
+
];
|
|
447
|
+
|
|
448
|
+
/** The radius a corner writes: one `borderRadius`, or a radius per corner it rounds. */
|
|
449
|
+
function cornerRadius(style: Resolved, corner: CornerModifier): void {
|
|
450
|
+
if (corner.value === 'concentric') return;
|
|
451
|
+
const radius = corner.value === 'infinite' ? INFINITE_RADIUS : resolveCorner(corner.value);
|
|
452
|
+
if (corner.side === 'all') {
|
|
453
|
+
style.borderRadius = radius;
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
const bits = CORNER_BITS[corner.side];
|
|
457
|
+
for (const [bit, key] of CORNER_RADIUS) if (bits & bit) style[key] = radius;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/** The radius keys a per-side corner writes: a glass or an island takes one radius, so it has none of these. */
|
|
461
|
+
export const SIDE_RADII: readonly string[] = CORNER_RADIUS.map(([, key]) => key);
|
|
462
|
+
|
|
463
|
+
const EDGE_BITS: Record<Edge, number> = {
|
|
464
|
+
all: 0b1111,
|
|
465
|
+
horizontal: 0b1100,
|
|
466
|
+
vertical: 0b0011,
|
|
467
|
+
top: 0b0001,
|
|
468
|
+
bottom: 0b0010,
|
|
469
|
+
leading: 0b0100,
|
|
470
|
+
trailing: 0b1000,
|
|
471
|
+
left: 0b10000,
|
|
472
|
+
right: 0b100000,
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
export function isLayerModifier(modifier: Modifier): modifier is LayerModifier {
|
|
476
|
+
return modifier.kind in LAYER_RANK;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/** Appends a box modifier to the innermost-first layer list, opening a new layer when order requires it. */
|
|
480
|
+
export function addToLayers(layers: Layer[], modifier: LayerModifier): void {
|
|
481
|
+
const rank = LAYER_RANK[modifier.kind];
|
|
482
|
+
const current = layers[layers.length - 1];
|
|
483
|
+
const edges = modifier.kind === 'padding' ? EDGE_BITS[modifier.edge] : 0;
|
|
484
|
+
const corners = modifier.kind === 'corner' ? CORNER_BITS[modifier.side] : 0;
|
|
485
|
+
// A second padding of an edge (or corner of a corner) the view has wraps it; other edges join it.
|
|
486
|
+
const repeats =
|
|
487
|
+
current !== undefined &&
|
|
488
|
+
(modifier.kind === 'padding'
|
|
489
|
+
? (current.edges & edges) !== 0
|
|
490
|
+
: modifier.kind === 'corner'
|
|
491
|
+
? (current.corners & corners) !== 0
|
|
492
|
+
: current.modifiers.some((existing) => existing.kind === modifier.kind));
|
|
493
|
+
const glass = modifier.kind === 'glass' ? modifier.value : undefined;
|
|
494
|
+
const concentric = modifier.kind === 'corner' && modifier.value === 'concentric';
|
|
495
|
+
const curve = modifier.kind === 'cornerCurve' ? modifier.value : undefined;
|
|
496
|
+
const blur = modifier.kind === 'blur';
|
|
497
|
+
const overlay = modifier.kind === 'overlay' ? modifier : undefined;
|
|
498
|
+
// A shadow never shares a view with a clip (iOS clips a view's own shadow): after a clipped corner it wraps.
|
|
499
|
+
const clip =
|
|
500
|
+
modifier.kind === 'shadow' && current?.modifiers.some((existing) => existing.kind === 'clipped')
|
|
501
|
+
? current?.modifiers.filter(
|
|
502
|
+
(existing): existing is CornerModifier => existing.kind === 'corner',
|
|
503
|
+
)
|
|
504
|
+
: undefined;
|
|
505
|
+
const clipped = clip !== undefined && clip.length > 0;
|
|
506
|
+
// Overlays stack: a second one joins the first, over it (or, behind, under it).
|
|
507
|
+
const sameKind = repeats && modifier.kind !== 'overlay';
|
|
508
|
+
if (current === undefined || rank < current.rank || sameKind || clipped) {
|
|
509
|
+
layers.push({
|
|
510
|
+
modifiers: [modifier],
|
|
511
|
+
variants: [],
|
|
512
|
+
key: clipped ? `${modifier.key}@${clip.map((corner) => corner.key).join(',')}` : modifier.key,
|
|
513
|
+
rank,
|
|
514
|
+
edges,
|
|
515
|
+
glass,
|
|
516
|
+
concentric,
|
|
517
|
+
curve,
|
|
518
|
+
blur,
|
|
519
|
+
overlays: overlay ? [overlay] : [],
|
|
520
|
+
corners,
|
|
521
|
+
follows: clipped ? clip : [],
|
|
522
|
+
});
|
|
523
|
+
return;
|
|
524
|
+
}
|
|
525
|
+
current.modifiers.push(modifier);
|
|
526
|
+
current.key = `${current.key};${modifier.key}`;
|
|
527
|
+
current.rank = rank;
|
|
528
|
+
current.edges |= edges;
|
|
529
|
+
current.corners |= corners;
|
|
530
|
+
if (glass) current.glass = glass;
|
|
531
|
+
if (concentric) current.concentric = true;
|
|
532
|
+
if (curve) current.curve = curve;
|
|
533
|
+
if (blur) current.blur = true;
|
|
534
|
+
if (overlay) current.overlays.push(overlay);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/** Whether two box modifiers set the same thing (a padding the same edge, a border the same side). */
|
|
538
|
+
function sameSlot(a: LayerModifier, b: LayerModifier): boolean {
|
|
539
|
+
if (a.kind !== b.kind) return false;
|
|
540
|
+
if (a.kind === 'padding' && b.kind === 'padding')
|
|
541
|
+
return (EDGE_BITS[a.edge] & EDGE_BITS[b.edge]) !== 0;
|
|
542
|
+
if (a.kind === 'border' && b.kind === 'border') return a.edge === b.edge;
|
|
543
|
+
if (a.kind === 'corner' && b.kind === 'corner')
|
|
544
|
+
return (CORNER_BITS[a.side] & CORNER_BITS[b.side]) !== 0;
|
|
545
|
+
return true;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* A variant's box modifier goes to the view that set the same thing last
|
|
550
|
+
* before the variant (it overrides that value), else to the outermost view so
|
|
551
|
+
* far, else to a view of its own.
|
|
552
|
+
*/
|
|
553
|
+
export function addVariantToLayers(
|
|
554
|
+
layers: Layer[],
|
|
555
|
+
condition: Planned,
|
|
556
|
+
modifier: LayerModifier,
|
|
557
|
+
): void {
|
|
558
|
+
let target: Layer | undefined;
|
|
559
|
+
for (let i = layers.length - 1; i >= 0 && target === undefined; i--) {
|
|
560
|
+
const layer = layers[i] as Layer;
|
|
561
|
+
if (layer.modifiers.some((existing) => sameSlot(existing, modifier))) target = layer;
|
|
562
|
+
}
|
|
563
|
+
target ??= layers[layers.length - 1];
|
|
564
|
+
if (target === undefined) {
|
|
565
|
+
target = {
|
|
566
|
+
modifiers: [],
|
|
567
|
+
variants: [],
|
|
568
|
+
key: '',
|
|
569
|
+
rank: -1,
|
|
570
|
+
edges: 0,
|
|
571
|
+
glass: undefined,
|
|
572
|
+
concentric: false,
|
|
573
|
+
curve: undefined,
|
|
574
|
+
blur: false,
|
|
575
|
+
overlays: [],
|
|
576
|
+
corners: 0,
|
|
577
|
+
follows: [],
|
|
578
|
+
};
|
|
579
|
+
layers.push(target);
|
|
580
|
+
}
|
|
581
|
+
target.variants.push([condition, modifier]);
|
|
582
|
+
target.key += `;?${condition ?? ''}${modifier.key}`;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export function paddingStyle(style: Resolved, edge: Edge, value: number): void {
|
|
586
|
+
// Negative padding pulls the box outward: a margin, as SwiftUI draws it.
|
|
587
|
+
const prefix = value < 0 ? 'margin' : 'padding';
|
|
588
|
+
// Longhands only: react-native-web ranks the shorthands above them (AGENTS.rules.md, Style).
|
|
589
|
+
const bits = EDGE_BITS[edge];
|
|
590
|
+
if (bits & 0b0001) style[`${prefix}Top`] = value;
|
|
591
|
+
if (bits & 0b0010) style[`${prefix}Bottom`] = value;
|
|
592
|
+
if (bits & 0b0100) style[`${prefix}Start`] = value;
|
|
593
|
+
if (bits & 0b1000) style[`${prefix}End`] = value;
|
|
594
|
+
if (bits & 0b10000) style[`${prefix}Left`] = value;
|
|
595
|
+
if (bits & 0b100000) style[`${prefix}Right`] = value;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
const BORDER_EDGE_KEY: Record<BorderEdge, string> = {
|
|
599
|
+
all: 'border',
|
|
600
|
+
top: 'borderTop',
|
|
601
|
+
bottom: 'borderBottom',
|
|
602
|
+
leading: 'borderStart',
|
|
603
|
+
trailing: 'borderEnd',
|
|
604
|
+
left: 'borderLeft',
|
|
605
|
+
right: 'borderRight',
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
/** One layer's view style, the variants that hold included. Glass's fill is the Surface's prop, not a style; a blur draws its own material. */
|
|
609
|
+
export function layerStyle(layer: Layer | undefined): Resolved {
|
|
610
|
+
if (layer === undefined) return {};
|
|
611
|
+
const style = modifiersStyle(layer, layer.modifiers);
|
|
612
|
+
for (const [condition, modifier] of layer.variants) {
|
|
613
|
+
if (condition === null) Object.assign(style, modifiersStyle(layer, [modifier]));
|
|
614
|
+
}
|
|
615
|
+
return style;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/** One layer's live variants: what each condition overrides. */
|
|
619
|
+
export function layerVariants(layer: Layer | undefined): VariantStyles {
|
|
620
|
+
if (layer === undefined || layer.variants.length === 0) return [];
|
|
621
|
+
return joinVariants(
|
|
622
|
+
layer.variants
|
|
623
|
+
.filter(([condition]) => condition !== null)
|
|
624
|
+
.map(([condition, modifier]) => [
|
|
625
|
+
condition as LiveCondition,
|
|
626
|
+
modifiersStyle(layer, [modifier]),
|
|
627
|
+
]),
|
|
628
|
+
);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
function modifiersStyle(layer: Layer, modifiers: readonly LayerModifier[]): Resolved {
|
|
632
|
+
const style: Resolved = {};
|
|
633
|
+
for (const modifier of modifiers) {
|
|
634
|
+
switch (modifier.kind) {
|
|
635
|
+
case 'padding':
|
|
636
|
+
paddingStyle(style, modifier.edge, resolveSpace(modifier.value));
|
|
637
|
+
break;
|
|
638
|
+
case 'frame':
|
|
639
|
+
for (const name of Object.keys(modifier.value) as (keyof FrameSpec)[]) {
|
|
640
|
+
const token = modifier.value[name];
|
|
641
|
+
if (token !== undefined) style[name] = resolveLength(token);
|
|
642
|
+
}
|
|
643
|
+
break;
|
|
644
|
+
case 'background':
|
|
645
|
+
style.backgroundColor = ink(modifier.value);
|
|
646
|
+
break;
|
|
647
|
+
case 'border': {
|
|
648
|
+
const prefix = BORDER_EDGE_KEY[modifier.edge];
|
|
649
|
+
style[`${prefix}Width`] = resolveBorderWidth(modifier.width);
|
|
650
|
+
style[`${prefix}Color`] = ink(modifier.value);
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
case 'corner':
|
|
654
|
+
cornerRadius(style, modifier);
|
|
655
|
+
break;
|
|
656
|
+
case 'clipped':
|
|
657
|
+
style.overflow = 'hidden';
|
|
658
|
+
break;
|
|
659
|
+
case 'cornerCurve':
|
|
660
|
+
// Bloom's platform-adaptive corner (`shapes/surface-style`): the curve alone, on the radius beside it.
|
|
661
|
+
Object.assign(style, surfaceStyle({ curve: modifier.value }));
|
|
662
|
+
break;
|
|
663
|
+
case 'opacity':
|
|
664
|
+
style.opacity = OPACITY[modifier.value];
|
|
665
|
+
break;
|
|
666
|
+
case 'ring':
|
|
667
|
+
ringStyle(style, modifier);
|
|
668
|
+
break;
|
|
669
|
+
case 'shadow':
|
|
670
|
+
// Bloom's elevation: the web's box-shadow, native's shadow and elevation.
|
|
671
|
+
shadowStyle(style, modifier.value);
|
|
672
|
+
for (const corner of layer.follows) cornerRadius(style, corner);
|
|
673
|
+
break;
|
|
674
|
+
case 'glass':
|
|
675
|
+
case 'blur':
|
|
676
|
+
case 'overlay':
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
return style;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Bloom's elevation for a role: the web's box-shadow, native's shadow and
|
|
685
|
+
* elevation (`bloomShadowStyle`). A Tailwind shadow is named by its exact
|
|
686
|
+
* box-shadow, which every platform draws as it is.
|
|
687
|
+
*/
|
|
688
|
+
function shadowStyle(style: Resolved, shadow: ShadowName): void {
|
|
689
|
+
if (shadow in SHADOW_BOX) Object.assign(style, bloomShadowStyle(shadow as ShadowRole));
|
|
690
|
+
else style.boxShadow = shadow;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* A ring is an outline: it draws outside the box and takes no room, as
|
|
695
|
+
* Bloom's own focus ring does. `none` is the web's `outline: none` (native
|
|
696
|
+
* draws none to remove).
|
|
697
|
+
*/
|
|
698
|
+
function ringStyle(style: Resolved, ring: Extract<Modifier, { kind: 'ring' }>): void {
|
|
699
|
+
if (ring.value === 'none') {
|
|
700
|
+
if (IS_WEB) style.outlineStyle = 'none';
|
|
701
|
+
return;
|
|
702
|
+
}
|
|
703
|
+
style.outlineColor = ink(ring.value);
|
|
704
|
+
style.outlineStyle = 'solid';
|
|
705
|
+
style.outlineWidth = resolveBorderWidth(ring.width);
|
|
706
|
+
if (ring.offset !== undefined) style.outlineOffset = resolveSpace(ring.offset);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/** Where an overlay sits in its view: SwiftUI's alignment, as the flex placement of an absolute inset box. */
|
|
710
|
+
const OVERLAY_ROW: Record<string, string> = { top: 'flex-start', bottom: 'flex-end' };
|
|
711
|
+
const OVERLAY_COLUMN: Record<string, string> = { leading: 'flex-start', trailing: 'flex-end' };
|
|
712
|
+
|
|
713
|
+
/** An overlay's box: the whole of its view, its content placed at `alignment`. */
|
|
714
|
+
export function overlayStyle(alignment: OverlayAlignment): Resolved {
|
|
715
|
+
const [vertical, horizontal] = alignment.includes('-')
|
|
716
|
+
? alignment.split('-')
|
|
717
|
+
: alignment === 'top' || alignment === 'bottom'
|
|
718
|
+
? [alignment, 'center']
|
|
719
|
+
: ['center', alignment];
|
|
720
|
+
return {
|
|
721
|
+
position: 'absolute',
|
|
722
|
+
top: 0,
|
|
723
|
+
right: 0,
|
|
724
|
+
bottom: 0,
|
|
725
|
+
left: 0,
|
|
726
|
+
justifyContent: OVERLAY_ROW[vertical as string] ?? 'center',
|
|
727
|
+
alignItems: OVERLAY_COLUMN[horizontal as string] ?? 'center',
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
// ── A view's place in its parent ─────────────────────────────────
|
|
732
|
+
|
|
733
|
+
/** What places a view in its parent: the modifiers its outermost box takes. */
|
|
734
|
+
export interface Placement {
|
|
735
|
+
grow: boolean;
|
|
736
|
+
shrink: ShrinkPriority | undefined;
|
|
737
|
+
alignSelf: Alignment | undefined;
|
|
738
|
+
position: PositionEdges | undefined;
|
|
739
|
+
zIndex: ZIndexName | undefined;
|
|
740
|
+
hidden: boolean | undefined;
|
|
741
|
+
basis: LengthToken | undefined;
|
|
742
|
+
flex: FlexName | undefined;
|
|
743
|
+
/** Margins, in order: a later one of a side replaces an earlier one. */
|
|
744
|
+
margin: readonly (readonly [Edge, PaddingToken])[];
|
|
745
|
+
allowsHitTesting: HitTesting | undefined;
|
|
746
|
+
accessibilityOnly: boolean;
|
|
747
|
+
/**
|
|
748
|
+
* Its geometry (`motionPlan`'s, by component) and the point it turns about,
|
|
749
|
+
* when its box draws them: at rest with nothing to move it, or when a
|
|
750
|
+
* variant changes it (see render.tsx `renderNode`).
|
|
751
|
+
*/
|
|
752
|
+
geometry: Geometry | undefined;
|
|
753
|
+
anchor: string | undefined;
|
|
754
|
+
/** What variants change in the view's place. */
|
|
755
|
+
variants: [Planned, PlaceModifier][];
|
|
756
|
+
/** The cache key of everything above, '' when nothing places the view. */
|
|
757
|
+
key: string;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/** The modifiers that place a view in its parent. */
|
|
761
|
+
export type PlaceModifier = Extract<
|
|
762
|
+
Modifier,
|
|
763
|
+
{
|
|
764
|
+
kind:
|
|
765
|
+
| 'grow'
|
|
766
|
+
| 'shrink'
|
|
767
|
+
| 'alignSelf'
|
|
768
|
+
| 'position'
|
|
769
|
+
| 'zIndex'
|
|
770
|
+
| 'hidden'
|
|
771
|
+
| 'basis'
|
|
772
|
+
| 'flex'
|
|
773
|
+
| 'margin'
|
|
774
|
+
| 'allowsHitTesting'
|
|
775
|
+
| 'accessibilityOnly'
|
|
776
|
+
| GeometryModifier['kind'];
|
|
777
|
+
}
|
|
778
|
+
>;
|
|
779
|
+
export const PLACE_KINDS: ReadonlySet<string> = new Set([
|
|
780
|
+
'grow',
|
|
781
|
+
'shrink',
|
|
782
|
+
'alignSelf',
|
|
783
|
+
'position',
|
|
784
|
+
'zIndex',
|
|
785
|
+
'hidden',
|
|
786
|
+
'basis',
|
|
787
|
+
'flex',
|
|
788
|
+
'margin',
|
|
789
|
+
'allowsHitTesting',
|
|
790
|
+
'accessibilityOnly',
|
|
791
|
+
// Only from a variant: a view's own geometry is the motion layer's (render.tsx, `motionPlan`).
|
|
792
|
+
'scale',
|
|
793
|
+
'offset',
|
|
794
|
+
'rotation',
|
|
795
|
+
]);
|
|
796
|
+
|
|
797
|
+
/** The modifiers that move a view where it is laid out: its transform. */
|
|
798
|
+
export type GeometryModifier = Extract<Modifier, { kind: 'scale' | 'offset' | 'rotation' }>;
|
|
799
|
+
export const GEOMETRY_KINDS: ReadonlySet<string> = new Set(['scale', 'offset', 'rotation']);
|
|
800
|
+
|
|
801
|
+
const isToken = (value: unknown): value is SpaceToken | AppToken<'space'> =>
|
|
802
|
+
typeof value === 'string' || (typeof value === 'object' && value !== null && 'scale' in value);
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* The transform components a geometry modifier sets, resolved; a
|
|
806
|
+
* `MotionValue` (which a variant never takes: render.tsx, `planVariant`) sets none.
|
|
807
|
+
*/
|
|
808
|
+
export function geometryOf(modifier: GeometryModifier): Geometry {
|
|
809
|
+
switch (modifier.kind) {
|
|
810
|
+
case 'scale':
|
|
811
|
+
return typeof modifier.value === 'string' ? { scale: resolveScale(modifier.value) } : {};
|
|
812
|
+
case 'rotation':
|
|
813
|
+
return typeof modifier.value === 'string' ? { rotate: resolveRotation(modifier.value) } : {};
|
|
814
|
+
case 'offset': {
|
|
815
|
+
const { x, y } = modifier.value;
|
|
816
|
+
const out: { translateX?: number; translateY?: number } = {};
|
|
817
|
+
if (isToken(x)) out.translateX = resolveSpace(x);
|
|
818
|
+
if (isToken(y)) out.translateY = resolveSpace(y);
|
|
819
|
+
return out;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/** Sets what `modifier` says about the view's place. */
|
|
825
|
+
export function applyPlacement(place: Placement, modifier: PlaceModifier): void {
|
|
826
|
+
if (modifier.kind === 'grow') place.grow = true;
|
|
827
|
+
else if (modifier.kind === 'accessibilityOnly') place.accessibilityOnly = true;
|
|
828
|
+
else if (GEOMETRY_KINDS.has(modifier.kind))
|
|
829
|
+
place.geometry = { ...place.geometry, ...geometryOf(modifier as GeometryModifier) };
|
|
830
|
+
else if (modifier.kind === 'margin')
|
|
831
|
+
place.margin = [...place.margin, [modifier.edge, modifier.value]];
|
|
832
|
+
else (place as unknown as Record<string, unknown>)[modifier.kind] = modifier.value;
|
|
833
|
+
place.key += `;${modifier.key}`;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/** A placement of these modifiers alone: what a variant's place modifiers write. */
|
|
837
|
+
function placementOf(modifiers: readonly PlaceModifier[]): Placement {
|
|
838
|
+
const place = emptyPlacement();
|
|
839
|
+
for (const modifier of modifiers) applyPlacement(place, modifier);
|
|
840
|
+
return place;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/** The live variants of a view's place. */
|
|
844
|
+
export function placeVariants(place: Placement): VariantStyles {
|
|
845
|
+
if (place.variants.length === 0) return [];
|
|
846
|
+
return joinVariants(
|
|
847
|
+
place.variants
|
|
848
|
+
.filter(([condition]) => condition !== null)
|
|
849
|
+
.map(([condition, modifier]) => [
|
|
850
|
+
condition as LiveCondition,
|
|
851
|
+
placeStyle(placementOf([modifier])),
|
|
852
|
+
]),
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export function emptyPlacement(): Placement {
|
|
857
|
+
return {
|
|
858
|
+
grow: false,
|
|
859
|
+
shrink: undefined,
|
|
860
|
+
alignSelf: undefined,
|
|
861
|
+
position: undefined,
|
|
862
|
+
zIndex: undefined,
|
|
863
|
+
hidden: undefined,
|
|
864
|
+
basis: undefined,
|
|
865
|
+
flex: undefined,
|
|
866
|
+
margin: [],
|
|
867
|
+
allowsHitTesting: undefined,
|
|
868
|
+
accessibilityOnly: false,
|
|
869
|
+
geometry: undefined,
|
|
870
|
+
anchor: undefined,
|
|
871
|
+
variants: [],
|
|
872
|
+
key: '',
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Tailwind's `sr-only`: out of the layout, one point square, clipped. Native
|
|
878
|
+
* has neither a clip path nor white-space, as NativeWind drew it there.
|
|
879
|
+
*/
|
|
880
|
+
const ACCESSIBILITY_ONLY: Resolved = Object.freeze({
|
|
881
|
+
position: 'absolute',
|
|
882
|
+
width: 1,
|
|
883
|
+
height: 1,
|
|
884
|
+
paddingTop: 0,
|
|
885
|
+
paddingBottom: 0,
|
|
886
|
+
paddingStart: 0,
|
|
887
|
+
paddingEnd: 0,
|
|
888
|
+
marginTop: -1,
|
|
889
|
+
marginBottom: -1,
|
|
890
|
+
marginStart: -1,
|
|
891
|
+
marginEnd: -1,
|
|
892
|
+
overflow: 'hidden',
|
|
893
|
+
borderWidth: 0,
|
|
894
|
+
...(IS_WEB ? { clipPath: 'inset(50%)', whiteSpace: 'nowrap' } : null),
|
|
895
|
+
});
|
|
896
|
+
|
|
897
|
+
const POSITION_EDGE: Record<keyof PositionEdges, string> = {
|
|
898
|
+
top: 'top',
|
|
899
|
+
bottom: 'bottom',
|
|
900
|
+
leading: 'start',
|
|
901
|
+
trailing: 'end',
|
|
902
|
+
left: 'left',
|
|
903
|
+
right: 'right',
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
/** Tailwind's flex utility as the longhands NativeWind writes. */
|
|
907
|
+
function flexStyle(style: Resolved, value: FlexName): void {
|
|
908
|
+
const [grow, shrink, basis] = FLEX[value] as readonly [
|
|
909
|
+
number | null,
|
|
910
|
+
number | null,
|
|
911
|
+
string | null,
|
|
912
|
+
];
|
|
913
|
+
if (grow !== null) style.flexGrow = grow;
|
|
914
|
+
if (shrink !== null) style.flexShrink = shrink;
|
|
915
|
+
if (basis !== null) style.flexBasis = basis;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/** Margins on the view itself, in order (a later one of a side replaces an earlier one). */
|
|
919
|
+
function marginStyle(style: Resolved, margin: Placement['margin']): void {
|
|
920
|
+
for (const [edge, token] of margin) {
|
|
921
|
+
const bits = EDGE_BITS[edge];
|
|
922
|
+
const value = resolveSpace(token);
|
|
923
|
+
if (bits & 0b0001) style.marginTop = value;
|
|
924
|
+
if (bits & 0b0010) style.marginBottom = value;
|
|
925
|
+
if (bits & 0b0100) style.marginStart = value;
|
|
926
|
+
if (bits & 0b1000) style.marginEnd = value;
|
|
927
|
+
if (bits & 0b10000) style.marginLeft = value;
|
|
928
|
+
if (bits & 0b100000) style.marginRight = value;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/** What sizes a view in its parent's flex (grow, shrink, basis): what a box moved around it takes too. */
|
|
933
|
+
export function flexOnly(place: Placement): Resolved {
|
|
934
|
+
const style: Resolved = {};
|
|
935
|
+
if (place.grow) style.flex = 1;
|
|
936
|
+
if (place.shrink !== undefined) style.flexShrink = SHRINK[place.shrink];
|
|
937
|
+
if (place.basis !== undefined) style.flexBasis = resolveLength(place.basis);
|
|
938
|
+
if (place.flex !== undefined) flexStyle(style, place.flex);
|
|
939
|
+
return style;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* `grow`, `shrink`, `basis`, `alignSelf`, `position`, `zIndex`, `hidden`,
|
|
944
|
+
* hit testing and `accessibilityOnly` place the view in its parent, so they
|
|
945
|
+
* belong to its outermost box. (`offset`, `scale` and `rotation` move it where
|
|
946
|
+
* it is laid out: the motion layer collects them, render.tsx `motionPlan`, and
|
|
947
|
+
* the box draws them here, by component, when nothing else does.) Neither
|
|
948
|
+
* `grow` nor `shrink` lowers the minimum width; a view that must shrink below
|
|
949
|
+
* its content says so with `.frame({ minWidth: 'none' })`.
|
|
950
|
+
*/
|
|
951
|
+
/** React Native's `pointerEvents` for each hit testing. */
|
|
952
|
+
const POINTER_EVENTS = {
|
|
953
|
+
true: 'auto',
|
|
954
|
+
false: 'none',
|
|
955
|
+
children: 'box-none',
|
|
956
|
+
self: 'box-only',
|
|
957
|
+
} as const satisfies Record<`${HitTesting}`, string>;
|
|
958
|
+
|
|
959
|
+
export function placeStyle(place: Placement): Resolved {
|
|
960
|
+
const style: Resolved = {};
|
|
961
|
+
if (place.grow) style.flex = 1;
|
|
962
|
+
if (place.shrink !== undefined) style.flexShrink = SHRINK[place.shrink];
|
|
963
|
+
if (place.basis !== undefined) style.flexBasis = resolveLength(place.basis);
|
|
964
|
+
if (place.flex !== undefined) flexStyle(style, place.flex);
|
|
965
|
+
marginStyle(style, place.margin);
|
|
966
|
+
if (place.alignSelf !== undefined) style.alignSelf = ALIGNMENT[place.alignSelf];
|
|
967
|
+
if (place.position !== undefined) {
|
|
968
|
+
style.position = 'absolute';
|
|
969
|
+
for (const edge of Object.keys(POSITION_EDGE) as (keyof PositionEdges)[]) {
|
|
970
|
+
const token = place.position[edge];
|
|
971
|
+
if (token !== undefined) style[POSITION_EDGE[edge]] = resolveSpace(token);
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
if (place.accessibilityOnly) Object.assign(style, ACCESSIBILITY_ONLY);
|
|
975
|
+
if (place.geometry !== undefined) Object.assign(style, place.geometry);
|
|
976
|
+
if (place.anchor !== undefined) style.transformOrigin = place.anchor;
|
|
977
|
+
// `auto` is Tailwind's z-auto: the web's z-index: auto; NativeWind writes nothing on native.
|
|
978
|
+
if (place.zIndex === 'auto') {
|
|
979
|
+
if (IS_WEB) style.zIndex = 'auto';
|
|
980
|
+
} else if (place.zIndex !== undefined) style.zIndex = Z_INDEX[place.zIndex];
|
|
981
|
+
if (place.hidden !== undefined) style.display = place.hidden ? 'none' : 'flex';
|
|
982
|
+
if (place.allowsHitTesting !== undefined)
|
|
983
|
+
style.pointerEvents = POINTER_EVENTS[`${place.allowsHitTesting}`];
|
|
984
|
+
for (const [condition, modifier] of place.variants) {
|
|
985
|
+
if (condition === null) Object.assign(style, placeStyle(placementOf([modifier])));
|
|
986
|
+
}
|
|
987
|
+
return style;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
// ── Stacks ───────────────────────────────────────────────────────
|
|
991
|
+
|
|
992
|
+
/** A stack's own layout: what its constructor and its stack modifiers say. */
|
|
993
|
+
export interface StackLayout {
|
|
994
|
+
spacing: SpaceToken | undefined;
|
|
995
|
+
/** `.childSpacing()`: a margin after each child but the last; the web's only (see `layoutStyle`). */
|
|
996
|
+
childSpacing: ChildSpacing | undefined;
|
|
997
|
+
align: Alignment | undefined;
|
|
998
|
+
justify: Justify | undefined;
|
|
999
|
+
wrap: boolean | undefined;
|
|
1000
|
+
/** `.axis()`: the axis over the constructor's. */
|
|
1001
|
+
axis: Axis | undefined;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
const JUSTIFY: Record<Justify, string> = {
|
|
1005
|
+
start: 'flex-start',
|
|
1006
|
+
center: 'center',
|
|
1007
|
+
end: 'flex-end',
|
|
1008
|
+
between: 'space-between',
|
|
1009
|
+
around: 'space-around',
|
|
1010
|
+
evenly: 'space-evenly',
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
/** The stack modifiers. */
|
|
1014
|
+
export type StackModifier = Extract<
|
|
1015
|
+
Modifier,
|
|
1016
|
+
{ kind: 'spacing' | 'childSpacing' | 'align' | 'justify' | 'wrap' | 'axis' }
|
|
1017
|
+
>;
|
|
1018
|
+
export const STACK_KINDS: ReadonlySet<string> = new Set([
|
|
1019
|
+
'spacing',
|
|
1020
|
+
'childSpacing',
|
|
1021
|
+
'align',
|
|
1022
|
+
'justify',
|
|
1023
|
+
'wrap',
|
|
1024
|
+
'axis',
|
|
1025
|
+
]);
|
|
1026
|
+
|
|
1027
|
+
/** A stack layout of these modifiers, the last of each kind winning. */
|
|
1028
|
+
export function layoutOf(modifiers: readonly StackModifier[]): StackLayout {
|
|
1029
|
+
const layout: StackLayout = {
|
|
1030
|
+
spacing: undefined,
|
|
1031
|
+
childSpacing: undefined,
|
|
1032
|
+
align: undefined,
|
|
1033
|
+
justify: undefined,
|
|
1034
|
+
wrap: undefined,
|
|
1035
|
+
axis: undefined,
|
|
1036
|
+
};
|
|
1037
|
+
for (const modifier of modifiers) {
|
|
1038
|
+
(layout as unknown as Record<string, unknown>)[modifier.kind] = modifier.value;
|
|
1039
|
+
}
|
|
1040
|
+
return layout;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/** What a layout sets, and nothing else (a variant writes only what it changes). */
|
|
1044
|
+
export function layoutStyle(layout: StackLayout): Resolved {
|
|
1045
|
+
const style: Resolved = {};
|
|
1046
|
+
if (layout.axis !== undefined)
|
|
1047
|
+
style.flexDirection = layout.axis === 'horizontal' ? 'row' : 'column';
|
|
1048
|
+
if (layout.justify !== undefined) style.justifyContent = JUSTIFY[layout.justify];
|
|
1049
|
+
if (layout.spacing !== undefined) style.gap = resolveSpace(layout.spacing);
|
|
1050
|
+
// Tailwind's space-x/space-y: on the web its rule for the children (a class of the
|
|
1051
|
+
// language's sheet, `childSpacingX` / `childSpacingY`); NativeWind writes none on native.
|
|
1052
|
+
if (layout.childSpacing !== undefined && IS_WEB) {
|
|
1053
|
+
const { axis, space } = layout.childSpacing;
|
|
1054
|
+
style[axis === 'horizontal' ? 'childSpacingX' : 'childSpacingY'] = resolveSpace(space);
|
|
1055
|
+
}
|
|
1056
|
+
if (layout.align !== undefined) style.alignItems = ALIGNMENT[layout.align];
|
|
1057
|
+
if (layout.wrap !== undefined) style.flexWrap = layout.wrap ? 'wrap' : 'nowrap';
|
|
1058
|
+
return style;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
export function stackStyle(axis: 'horizontal' | 'vertical', layout: StackLayout): Resolved {
|
|
1062
|
+
const style: Resolved = {};
|
|
1063
|
+
if (axis === 'horizontal') style.flexDirection = 'row';
|
|
1064
|
+
return Object.assign(style, layoutStyle(layout));
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
// ── Text ─────────────────────────────────────────────────────────
|
|
1068
|
+
|
|
1069
|
+
export interface TextTraits {
|
|
1070
|
+
foreground: InkToken | undefined;
|
|
1071
|
+
/** The size: a ramp step or a size rung. */
|
|
1072
|
+
font: Exclude<FontName, FontFamilyName> | undefined;
|
|
1073
|
+
/** The face beside the size (`.font('mono')`); Bloom's own when unset. */
|
|
1074
|
+
family: FontFamilyName | undefined;
|
|
1075
|
+
weight: WeightName | undefined;
|
|
1076
|
+
leading: LeadingToken | undefined;
|
|
1077
|
+
tracking: TrackingName | undefined;
|
|
1078
|
+
/** The traits live variants set above (`when()`), each over the traits it is in. */
|
|
1079
|
+
variants?: readonly (readonly [LiveCondition, Partial<TextTraits>])[];
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
const PLAIN_LOOK: TextLook = {
|
|
1083
|
+
noWrap: false,
|
|
1084
|
+
align: undefined,
|
|
1085
|
+
italic: false,
|
|
1086
|
+
underline: false,
|
|
1087
|
+
strikethrough: false,
|
|
1088
|
+
textCase: undefined,
|
|
1089
|
+
link: false,
|
|
1090
|
+
tabular: false,
|
|
1091
|
+
wordBreak: undefined,
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
/** A text's live variants: what each sets of the traits it changes (a colour, a whole font). */
|
|
1095
|
+
export function textVariants(traits: TextTraits): VariantStyles {
|
|
1096
|
+
if (traits.variants === undefined || traits.variants.length === 0) return [];
|
|
1097
|
+
return joinVariants(
|
|
1098
|
+
traits.variants.map(([condition, changed]) => [
|
|
1099
|
+
condition,
|
|
1100
|
+
textStyle(
|
|
1101
|
+
{ ...traits, ...changed, variants: undefined },
|
|
1102
|
+
PLAIN_LOOK,
|
|
1103
|
+
new Set(Object.keys(changed) as (keyof TextTraits)[]),
|
|
1104
|
+
),
|
|
1105
|
+
]),
|
|
1106
|
+
);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/** Digits of one width: React Native's `fontVariant`, the web's `font-variant`. */
|
|
1110
|
+
const TABULAR: readonly string[] = Object.freeze(['tabular-nums']);
|
|
1111
|
+
|
|
1112
|
+
/** Each family's face, as Bloom's `Text` sets it for `font-mono`. */
|
|
1113
|
+
const FAMILY: Record<FontFamilyName, string> = { mono: fontFamilyStyle('mono').fontFamily };
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* React Native's `Text` as an Oxy app draws it: `@oxy.so/app-preset` (6.8.0,
|
|
1117
|
+
* `metro/base-font`) puts Bloom's base face first in the style of every text
|
|
1118
|
+
* that names no family, Inter on Android and iOS for a text with no text
|
|
1119
|
+
* ancestor (a nested one inherits its parent's), and the document's family
|
|
1120
|
+
* (`inherit`) on the web for every text. `RawText` writes the same, first, so
|
|
1121
|
+
* what its own chain names (`.font('mono')`) still wins.
|
|
1122
|
+
*/
|
|
1123
|
+
export function rawBaseFont(inText: boolean): Resolved | undefined {
|
|
1124
|
+
if (IS_WEB) return RAW_FONT_WEB;
|
|
1125
|
+
return inText ? undefined : RAW_FONT_NATIVE;
|
|
1126
|
+
}
|
|
1127
|
+
const RAW_FONT_WEB: Resolved = Object.freeze({ fontFamily: 'inherit' });
|
|
1128
|
+
const RAW_FONT_NATIVE: Resolved = Object.freeze({ fontFamily: fontFamilyStyle('sans').fontFamily });
|
|
1129
|
+
|
|
1130
|
+
/** The colour role text and icons paint with: the environment's, or the spec's default. */
|
|
1131
|
+
export function foregroundOf(traits: TextTraits): InkToken {
|
|
1132
|
+
return traits.foreground ?? ENVIRONMENT_DEFAULTS.foreground;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/** What a text's own chain sets beyond the environment's traits (its `own` modifiers). */
|
|
1136
|
+
export interface TextLook {
|
|
1137
|
+
readonly noWrap: boolean;
|
|
1138
|
+
readonly align: TextAlignment | undefined;
|
|
1139
|
+
readonly italic: boolean;
|
|
1140
|
+
readonly underline: boolean;
|
|
1141
|
+
readonly strikethrough: boolean;
|
|
1142
|
+
readonly textCase: TextCase | undefined;
|
|
1143
|
+
/** A link: Bloom's inline link ink (`primary`) unless the chain names its own, and an underline. */
|
|
1144
|
+
readonly link: boolean;
|
|
1145
|
+
/** `monospacedDigit()`: digits of one width. */
|
|
1146
|
+
readonly tabular: boolean;
|
|
1147
|
+
/** Web: where a line may break inside a word. */
|
|
1148
|
+
readonly wordBreak: WordBreak | undefined;
|
|
1149
|
+
/**
|
|
1150
|
+
* `.truncation('tail')` with no line limit: on the web an ellipsis where the
|
|
1151
|
+
* text is cut (`text-overflow`; Tailwind's `truncate` is it with `.noWrap()`
|
|
1152
|
+
* and `.clipped()`); React Native draws one only at a line limit.
|
|
1153
|
+
*/
|
|
1154
|
+
readonly ellipsis?: boolean;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
/** React Native's alignment: `start` and `end` are its `left` and `right`, which it flips right to left. */
|
|
1158
|
+
const TEXT_ALIGN: Record<TextAlignment, string> = {
|
|
1159
|
+
start: 'left',
|
|
1160
|
+
center: 'center',
|
|
1161
|
+
end: 'right',
|
|
1162
|
+
justify: 'justify',
|
|
1163
|
+
// Tailwind's text-left and text-right, as NativeWind writes them on each platform.
|
|
1164
|
+
left: 'left',
|
|
1165
|
+
right: 'right',
|
|
1166
|
+
};
|
|
1167
|
+
|
|
1168
|
+
/** The colour of a link with no ink of its own: Bloom's inline link (`markdown/InlineMarkdown`). */
|
|
1169
|
+
const LINK_INK: ColorName = 'primary';
|
|
1170
|
+
|
|
1171
|
+
/** A ramp step, by family: the type Bloom's `Text` sets from its `variant`. */
|
|
1172
|
+
export function isRampFont(font: TextTraits['font']): font is TypeFamily {
|
|
1173
|
+
return font !== undefined && !(font in FONT_SIZE);
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/** The `variant` Bloom's `Text` takes for these traits, when their font is a ramp step. */
|
|
1177
|
+
export function textVariant(traits: TextTraits): TypeScaleVariant | undefined {
|
|
1178
|
+
if (!isRampFont(traits.font)) return undefined;
|
|
1179
|
+
return rampStep(traits.font, traits.weight) as TypeScaleVariant;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* A text's style. The outermost text is Bloom's `Text`: a ramp font is its
|
|
1184
|
+
* `variant` (see `textVariant`), so only a size rung, a weight without a ramp
|
|
1185
|
+
* font, a leading and a colour the environment sets are written here; with no
|
|
1186
|
+
* colour, Bloom's own ink stays. A nested text is an inline span (`span` holds
|
|
1187
|
+
* the traits its own chain sets): it writes only those, and inherits the rest
|
|
1188
|
+
* from the text it is in.
|
|
1189
|
+
*/
|
|
1190
|
+
export function textStyle(
|
|
1191
|
+
traits: TextTraits,
|
|
1192
|
+
look: TextLook,
|
|
1193
|
+
span: ReadonlySet<keyof TextTraits> | undefined,
|
|
1194
|
+
): Resolved {
|
|
1195
|
+
const style: Resolved = {};
|
|
1196
|
+
const sets = (trait: keyof TextTraits) => span === undefined || span.has(trait);
|
|
1197
|
+
if (sets('font') || sets('weight') || sets('leading') || sets('tracking')) {
|
|
1198
|
+
const font = resolveFont(traits.font, traits.weight, traits.leading, traits.tracking);
|
|
1199
|
+
if (span === undefined && isRampFont(traits.font)) {
|
|
1200
|
+
if (font.lineHeight !== undefined && traits.leading !== undefined)
|
|
1201
|
+
style.lineHeight = font.lineHeight;
|
|
1202
|
+
if (font.letterSpacing !== undefined && traits.tracking !== undefined)
|
|
1203
|
+
style.letterSpacing = font.letterSpacing;
|
|
1204
|
+
// A weight the ramp has no step for is written over the regular step.
|
|
1205
|
+
if (
|
|
1206
|
+
traits.weight !== undefined &&
|
|
1207
|
+
!rampStep(traits.font, traits.weight).endsWith(traits.weight)
|
|
1208
|
+
)
|
|
1209
|
+
style.fontWeight = font.fontWeight as string;
|
|
1210
|
+
} else Object.assign(style, font);
|
|
1211
|
+
}
|
|
1212
|
+
if (sets('family') && traits.family !== undefined) style.fontFamily = FAMILY[traits.family];
|
|
1213
|
+
if (look.link && (span === undefined ? traits.foreground === undefined : !span.has('foreground')))
|
|
1214
|
+
style.color = role(LINK_INK);
|
|
1215
|
+
else if (sets('foreground') && traits.foreground !== undefined)
|
|
1216
|
+
style.color = ink(traits.foreground);
|
|
1217
|
+
if (look.align !== undefined) style.textAlign = TEXT_ALIGN[look.align];
|
|
1218
|
+
if (look.italic) style.fontStyle = 'italic';
|
|
1219
|
+
const underline = look.underline || look.link;
|
|
1220
|
+
if (underline || look.strikethrough) {
|
|
1221
|
+
style.textDecorationLine =
|
|
1222
|
+
underline && look.strikethrough
|
|
1223
|
+
? 'underline line-through'
|
|
1224
|
+
: underline
|
|
1225
|
+
? 'underline'
|
|
1226
|
+
: 'line-through';
|
|
1227
|
+
}
|
|
1228
|
+
if (look.textCase !== undefined) style.textTransform = look.textCase;
|
|
1229
|
+
if (look.noWrap && IS_WEB) style.whiteSpace = 'nowrap';
|
|
1230
|
+
if (look.tabular) style.fontVariant = TABULAR;
|
|
1231
|
+
// React Native has no word breaking of its own to set; the web's is CSS.
|
|
1232
|
+
if (look.wordBreak === 'all' && IS_WEB) style.wordBreak = 'break-all';
|
|
1233
|
+
if (look.wordBreak === 'words' && IS_WEB) style.overflowWrap = 'break-word';
|
|
1234
|
+
if (look.ellipsis && IS_WEB) style.textOverflow = 'ellipsis';
|
|
1235
|
+
return style;
|
|
1236
|
+
}
|