@ankhorage/zora 28.6.9 → 28.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/dist/authoring.browser.js +4 -4
- package/dist/authoring.js +4 -4
- package/dist/features/accordion/accordionItemMeta.js +1 -1
- package/dist/features/accordion/adapters/inbound/Accordion.js +2 -2
- package/dist/features/accordion/adapters/inbound/AccordionItem.js +5 -5
- package/dist/features/accordion/public.js +2 -2
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js +2 -2
- package/dist/features/activity-indicator/adapters/inbound/web-artifact/ActivityIndicator.js +2 -2
- package/dist/features/activity-indicator/public.js +1 -1
- package/dist/features/app-bar/adapters/inbound/AppBar.js +6 -6
- package/dist/features/app-bar/appBarMeta.js +1 -1
- package/dist/features/app-bar/public.js +1 -1
- package/dist/features/app-header/adapters/inbound/AppHeader.js +1 -1
- package/dist/features/app-header/appHeaderMeta.js +1 -1
- package/dist/features/app-header/public.js +1 -1
- package/dist/features/audio/adapters/inbound/Audio.js +6 -6
- package/dist/features/audio/public.js +1 -1
- package/dist/features/auth/adapters/inbound/AuthForm.js +3 -3
- package/dist/features/auth/adapters/inbound/AuthFormField.js +2 -2
- package/dist/features/auth/adapters/inbound/AuthScreen.js +8 -8
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js +5 -5
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.js +3 -3
- package/dist/features/auth/adapters/inbound/OAuthProviderList.js +3 -3
- package/dist/features/auth/adapters/inbound/OtpForm.js +4 -4
- package/dist/features/auth/adapters/inbound/SignInForm.js +5 -5
- package/dist/features/auth/adapters/inbound/SignUpForm.js +4 -4
- package/dist/features/auth/oauthProviderButtonMeta.js +1 -1
- package/dist/features/auth/oauthProviderListMeta.js +1 -1
- package/dist/features/auth/public.js +8 -8
- package/dist/features/avatar/adapters/inbound/Avatar.js +6 -6
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js +4 -4
- package/dist/features/avatar/avatarGroupMeta.js +1 -1
- package/dist/features/avatar/public.js +3 -3
- package/dist/features/badge/adapters/inbound/Badge.js +2 -2
- package/dist/features/badge/public.js +1 -1
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js +4 -4
- package/dist/features/bottom-sheet/bottomSheetMeta.js +1 -1
- package/dist/features/bottom-sheet/public.js +1 -1
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js +7 -7
- package/dist/features/breadcrumbs/public.js +1 -1
- package/dist/features/button/adapters/inbound/Button.js +4 -4
- package/dist/features/button/adapters/inbound/ButtonGroup.js +2 -2
- package/dist/features/button/adapters/inbound/IconButton.js +2 -2
- package/dist/features/button/buttonMeta.js +2 -2
- package/dist/features/button/public.js +3 -3
- package/dist/features/button/utils/resolveButtonThemeRecipe.js +1 -1
- package/dist/features/button/utils/themeRecipeMeta.js +1 -1
- package/dist/features/calendar/adapters/inbound/Calendar.js +7 -7
- package/dist/features/calendar/public.js +1 -1
- package/dist/features/card/adapters/inbound/Card.js +8 -8
- package/dist/features/card/adapters/inbound/MediaCard.js +6 -6
- package/dist/features/card/adapters/inbound/MetricCard.js +10 -10
- package/dist/features/card/adapters/inbound/PostCard.js +7 -7
- package/dist/features/card/adapters/inbound/ProductCard.js +8 -8
- package/dist/features/card/cardMeta.js +2 -2
- package/dist/features/card/mediaCardMeta.js +1 -1
- package/dist/features/card/postCardMeta.js +1 -1
- package/dist/features/card/public.js +5 -5
- package/dist/features/carousel/Carousel.js +2 -2
- package/dist/features/carousel/public.js +1 -1
- package/dist/features/chat/adapters/inbound/ChatListItem.js +6 -6
- package/dist/features/chat/adapters/inbound/MessageBubble.js +5 -5
- package/dist/features/chat/messageBubbleMeta.js +1 -1
- package/dist/features/chat/public.js +2 -2
- package/dist/features/chess/adapters/inbound/ChessBoard.js +6 -6
- package/dist/features/chess/adapters/inbound/OpeningBook.js +3 -3
- package/dist/features/chess/public.js +5 -5
- package/dist/features/chip/adapters/inbound/Chip.js +7 -7
- package/dist/features/chip/adapters/inbound/ChipGroup.js +3 -3
- package/dist/features/chip/public.js +2 -2
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js +6 -6
- package/dist/features/collection-editor/public.js +1 -1
- package/dist/features/color/ColorHexField.js +4 -4
- package/dist/features/color/ColorHorizontalPointerProxy.js +1 -1
- package/dist/features/color/ColorHueScale.js +8 -8
- package/dist/features/color/ColorPicker.js +13 -13
- package/dist/features/color/ColorSpectrumSlider.js +5 -5
- package/dist/features/color/ColorTone.js +10 -10
- package/dist/features/color/ColorWheel.js +7 -7
- package/dist/features/color/ColorWheelKeyboardProxy.js +1 -1
- package/dist/features/color/ColorWheelPointerProxy.js +1 -1
- package/dist/features/color/public.js +4 -4
- package/dist/features/color/utils/resolveWheelColor.js +2 -2
- package/dist/features/content-rail/adapters/inbound/ContentRail.js +10 -10
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js +1 -1
- package/dist/features/content-rail/contentRailMeta.js +2 -2
- package/dist/features/content-rail/public.js +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js +11 -11
- package/dist/features/data-table/public.js +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.js +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.native.js +6 -6
- package/dist/features/date-picker/adapters/inbound/DatePicker.web.js +6 -6
- package/dist/features/date-picker/composition/DatePickerContent.js +5 -5
- package/dist/features/date-picker/composition/DatePickerField.js +1 -1
- package/dist/features/date-picker/composition/DatePickerTrigger.js +2 -2
- package/dist/features/date-picker/public.js +1 -1
- package/dist/features/dialog/adapters/inbound/Dialog.js +4 -4
- package/dist/features/dialog/dialogMeta.js +1 -1
- package/dist/features/dialog/public.js +1 -1
- package/dist/features/empty-state/adapters/inbound/EmptyState.js +4 -4
- package/dist/features/empty-state/public.js +1 -1
- package/dist/features/explorer/adapters/inbound/Explorer.js +11 -11
- package/dist/features/explorer/adapters/inbound/FileExplorer.js +1 -1
- package/dist/features/explorer/adapters/inbound/MediaExplorer.js +1 -1
- package/dist/features/explorer/adapters/inbound/useExplorerKeyboardFocus.js +1 -1
- package/dist/features/explorer/public.js +5 -5
- package/dist/features/form/adapters/inbound/Form.js +3 -3
- package/dist/features/form/adapters/inbound/FormActions.js +3 -3
- package/dist/features/form/adapters/inbound/FormError.js +4 -4
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.js +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js +3 -3
- package/dist/features/form/checkbox/public.js +2 -2
- package/dist/features/form/field/adapters/inbound/Field.js +3 -3
- package/dist/features/form/field/public.js +1 -1
- package/dist/features/form/public.js +6 -6
- package/dist/features/form/radio/adapters/inbound/Radio.js +1 -1
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js +7 -7
- package/dist/features/form/radio/adapters/inbound/RadioOptionControl.js +4 -4
- package/dist/features/form/radio/public.js +2 -2
- package/dist/features/form/radio/radioMeta.js +1 -1
- package/dist/features/form/radio/themeRecipeMeta.js +1 -1
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js +1 -1
- package/dist/features/form/search-input/adapters/inbound/SearchInput.js +2 -2
- package/dist/features/form/search-input/public.js +1 -1
- package/dist/features/form/select/adapters/inbound/Select.js +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.js +7 -7
- package/dist/features/form/select/adapters/inbound/Select.web.js +8 -8
- package/dist/features/form/select/composition/SelectOptionRow.js +6 -6
- package/dist/features/form/select/composition/SelectSearchInput.js +2 -2
- package/dist/features/form/select/composition/SelectTrigger.js +6 -6
- package/dist/features/form/select/composition/useSelectController.js +1 -1
- package/dist/features/form/select/public.js +1 -1
- package/dist/features/form/switch/adapters/inbound/Switch.js +1 -1
- package/dist/features/form/switch/public.js +1 -1
- package/dist/features/form/text-input/adapters/inbound/TextInput.js +4 -4
- package/dist/features/form/text-input/public.js +1 -1
- package/dist/features/form/useFormController.js +1 -1
- package/dist/features/game/adapters/inbound/Game.js +6 -6
- package/dist/features/game/adapters/inbound/GameEntity.js +3 -3
- package/dist/features/game/adapters/inbound/GameField.js +2 -2
- package/dist/features/game/adapters/inbound/GameInputZone.js +3 -3
- package/dist/features/game/adapters/inbound/GameMeasurementProbe.js +3 -3
- package/dist/features/game/adapters/inbound/GameOverlay.js +2 -2
- package/dist/features/game/adapters/inbound/createGamePointerEvent.js +1 -1
- package/dist/features/game/adapters/inbound/useGameInputZoneResponder.js +3 -3
- package/dist/features/game/composition/useGameRuntime.js +1 -1
- package/dist/features/game/public.js +6 -6
- package/dist/features/game/utils/toGamePercentage.js +1 -1
- package/dist/features/game/utils/useGameEntityAnimatedStyle.js +4 -4
- package/dist/features/game/utils/useGameEntityMeasurement.js +2 -2
- package/dist/features/gradient/adapters/inbound/Gradient.js +3 -3
- package/dist/features/gradient/gradientMeta.js +1 -1
- package/dist/features/gradient/public.js +2 -2
- package/dist/features/graph-view/adapters/inbound/web-artifact/GraphNodeOverlay.js +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/GraphView.js +6 -6
- package/dist/features/graph-view/adapters/inbound/web-artifact/bindGraphEvents.js +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/compactGraphSpacing.js +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphController.js +2 -2
- package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphResizeObserver.js +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphRuntime.js +16 -16
- package/dist/features/graph-view/adapters/inbound/web-artifact/createGraphViewDomCallbacks.js +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/fitGraphViewport.js +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/hasGraphLayoutChanged.js +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/runGraphLayout.js +1 -1
- package/dist/features/graph-view/adapters/inbound/web-artifact/syncGraphElements.js +1 -1
- package/dist/features/graph-view/public.js +2 -2
- package/dist/features/grid-interactions/adapters/inbound/GridInteractions.js +5 -5
- package/dist/features/grid-interactions/adapters/inbound/GridInteractionsKeyboardProxy.js +1 -1
- package/dist/features/grid-interactions/adapters/inbound/useGridInteractionScrollLock.js +1 -1
- package/dist/features/grid-interactions/adapters/inbound/useGridInteractionScrollLock.native.js +2 -2
- package/dist/features/grid-interactions/public.js +2 -2
- package/dist/features/grid-rulers/adapters/inbound/GridLineOverlay.js +4 -4
- package/dist/features/grid-rulers/adapters/inbound/GridRuler.js +3 -3
- package/dist/features/grid-rulers/application/resolveGridRulerMarks.js +1 -1
- package/dist/features/grid-rulers/public.js +3 -3
- package/dist/features/grid-view/adapters/inbound/GridView.js +1 -1
- package/dist/features/grid-view/adapters/inbound/TileGrid.js +2 -2
- package/dist/features/grid-view/application/createGridScrollSync.js +2 -2
- package/dist/features/grid-view/application/resolveScrollEventSource.js +1 -1
- package/dist/features/grid-view/public.js +3 -3
- package/dist/features/hero/adapters/inbound/Hero.js +5 -5
- package/dist/features/hero/public.js +1 -1
- package/dist/features/icon/adapters/inbound/Icon.js +1 -1
- package/dist/features/icon/public.js +1 -1
- package/dist/features/image/adapters/inbound/Image.js +4 -4
- package/dist/features/image/public.js +1 -1
- package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.js +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js +1 -1
- package/dist/features/keyboard-avoiding-view/public.js +2 -2
- package/dist/features/layout/adapters/inbound/AppShell.js +2 -2
- package/dist/features/layout/adapters/inbound/Divider.js +1 -1
- package/dist/features/layout/adapters/inbound/Grid.js +1 -1
- package/dist/features/layout/adapters/inbound/Screen.js +4 -4
- package/dist/features/layout/adapters/inbound/ScrollView.js +4 -4
- package/dist/features/layout/adapters/inbound/View.js +1 -1
- package/dist/features/layout/adapters/inbound/useScrollGestureLock.js +1 -1
- package/dist/features/layout/dividerMeta.js +1 -1
- package/dist/features/layout/gridMeta.js +2 -2
- package/dist/features/layout/public.js +8 -8
- package/dist/features/layout/screenMeta.js +1 -1
- package/dist/features/layout/scrollViewMeta.js +2 -2
- package/dist/features/layout/viewMeta.js +2 -2
- package/dist/features/link/adapters/inbound/Link.js +1 -1
- package/dist/features/link/adapters/inbound/Link.native.js +5 -5
- package/dist/features/link/adapters/inbound/Link.web.js +5 -5
- package/dist/features/link/linkMeta.js +2 -2
- package/dist/features/link/public.js +1 -1
- package/dist/features/link/utils/linkThemeRecipeMeta.js +1 -1
- package/dist/features/list/adapters/inbound/FlatList.js +6 -6
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.js +1 -1
- package/dist/features/list/adapters/inbound/List.js +4 -4
- package/dist/features/list/adapters/inbound/ListItem.js +5 -5
- package/dist/features/list/adapters/inbound/ListSection.js +4 -4
- package/dist/features/list/adapters/inbound/SectionList.js +7 -7
- package/dist/features/list/adapters/inbound/VerticalListSeparator.js +1 -1
- package/dist/features/list/flatListMeta.js +2 -2
- package/dist/features/list/public.js +5 -5
- package/dist/features/list/sectionListMeta.js +1 -1
- package/dist/features/master-detail/adapters/inbound/MasterDetail.js +3 -3
- package/dist/features/master-detail/masterDetailMeta.js +1 -1
- package/dist/features/master-detail/public.js +1 -1
- package/dist/features/matrix-grid/adapters/inbound/MatrixGrid.js +9 -9
- package/dist/features/matrix-grid/adapters/inbound/useMatrixGridKeyboardFocus.js +1 -1
- package/dist/features/matrix-grid/public.js +2 -2
- package/dist/features/missing-element/adapters/inbound/MissingElement.js +5 -5
- package/dist/features/missing-element/public.js +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.js +6 -6
- package/dist/features/pagination/public.js +1 -1
- package/dist/features/pagination/utils/resolvePaginationState.js +1 -1
- package/dist/features/palette-item/adapters/inbound/PaletteItem.js +6 -6
- package/dist/features/palette-item/public.js +1 -1
- package/dist/features/picker/composition/PickerField.js +2 -2
- package/dist/features/picker/composition/PickerHeader.js +2 -2
- package/dist/features/popover/adapters/inbound/Popover.js +1 -1
- package/dist/features/popover/public.js +1 -1
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js +5 -5
- package/dist/features/popover-menu/public.js +1 -1
- package/dist/features/progress/adapters/inbound/Progress.js +5 -5
- package/dist/features/progress/adapters/inbound/ProgressRing.js +7 -7
- package/dist/features/progress/progressMeta.js +1 -1
- package/dist/features/progress/public.js +2 -2
- package/dist/features/rating/adapters/inbound/Rating.js +6 -6
- package/dist/features/rating/public.js +1 -1
- package/dist/features/reader/adapters/inbound/Reader.js +10 -10
- package/dist/features/reader/meta.js +1 -1
- package/dist/features/reader/public.js +2 -2
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js +69 -69
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +2 -2
- package/dist/features/registry/adapters/inbound/AuthoringSelectionAdapter.js +1 -1
- package/dist/features/registry/adapters/inbound/ThemeEditorAdapter.js +1 -1
- package/dist/features/registry/bindableComponentMeta.js +3 -3
- package/dist/features/registry/componentMeta.js +108 -108
- package/dist/features/registry/createEventCapabilities.js +1 -1
- package/dist/features/registry/createZoraComponentRegistry.js +1 -1
- package/dist/features/registry/finalizeFeatureMetadata.js +2 -2
- package/dist/features/registry/index.js +4 -4
- package/dist/features/registry/public.js +3 -3
- package/dist/features/registry/readerFreeRegistry.js +2 -2
- package/dist/features/registry/themeRecipeMeta.js +6 -6
- package/dist/features/rich-text/adapters/inbound/RichText.js +2 -2
- package/dist/features/rich-text/adapters/inbound/RichText.web.js +2 -2
- package/dist/features/rich-text/adapters/inbound/RichTextClient.js +7 -7
- package/dist/features/rich-text/public.js +1 -1
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js +7 -7
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.js +5 -5
- package/dist/features/scanner/adapters/inbound/ScanOverlay.js +5 -5
- package/dist/features/scanner/meta.js +1 -1
- package/dist/features/scanner/public.js +3 -3
- package/dist/features/section/adapters/inbound/ScreenSection.js +3 -3
- package/dist/features/section/adapters/inbound/SectionHeader.js +4 -4
- package/dist/features/section/public.js +2 -2
- package/dist/features/section/screenSectionMeta.js +1 -1
- package/dist/features/selection/adapters/inbound/SelectableItem.js +3 -3
- package/dist/features/selection/adapters/inbound/SelectionProvider.js +1 -1
- package/dist/features/selection/public.js +3 -3
- package/dist/features/skeleton/adapters/inbound/Skeleton.js +3 -3
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.js +6 -6
- package/dist/features/skeleton/adapters/inbound/SkeletonList.js +4 -4
- package/dist/features/skeleton/adapters/inbound/SkeletonText.js +3 -3
- package/dist/features/skeleton/public.js +4 -4
- package/dist/features/spatial-grid/adapters/inbound/SpatialGrid.js +2 -2
- package/dist/features/spatial-grid/public.js +1 -1
- package/dist/features/surface/adapters/inbound/Surface.js +1 -1
- package/dist/features/surface/public.js +1 -1
- package/dist/features/surface/surfaceMeta.js +2 -2
- package/dist/features/tabletop/adapters/inbound/CardBack.js +4 -4
- package/dist/features/tabletop/adapters/inbound/CardHand.js +3 -3
- package/dist/features/tabletop/adapters/inbound/PlayingCard.js +5 -5
- package/dist/features/tabletop/adapters/inbound/PokerTrainingTable.js +3 -3
- package/dist/features/tabletop/adapters/inbound/TabletopTable.js +5 -5
- package/dist/features/tabletop/public.js +9 -9
- package/dist/features/tabletop/utils/createPokerTrainingTableState.js +1 -1
- package/dist/features/tabs/adapters/inbound/Tab.js +2 -2
- package/dist/features/tabs/adapters/inbound/TabList.js +1 -1
- package/dist/features/tabs/adapters/inbound/TabPanel.js +1 -1
- package/dist/features/tabs/adapters/inbound/Tabs.js +2 -2
- package/dist/features/tabs/public.js +4 -4
- package/dist/features/tabs/tabPanelMeta.js +2 -2
- package/dist/features/tabs/tabsMeta.js +1 -1
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.js +4 -4
- package/dist/features/theme/adapters/inbound/ZoraProvider.js +4 -4
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.js +2 -2
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.js +1 -1
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.js +1 -1
- package/dist/features/theme/composition/ZoraThemeRuntimeContext.js +1 -1
- package/dist/features/theme/composition/useZoraThemeRecipe.js +2 -2
- package/dist/features/theme/mode-toggle/public.js +1 -1
- package/dist/features/theme/runtime.js +5 -5
- package/dist/features/time-grid/adapters/inbound/TimeGrid.js +4 -4
- package/dist/features/time-grid/public.js +3 -3
- package/dist/features/time-picker/adapters/inbound/TimePicker.js +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.native.js +5 -5
- package/dist/features/time-picker/adapters/inbound/TimePicker.web.js +5 -5
- package/dist/features/time-picker/composition/TimePickerContent.js +3 -3
- package/dist/features/time-picker/composition/TimePickerField.js +1 -1
- package/dist/features/time-picker/composition/TimePickerTrigger.js +1 -1
- package/dist/features/time-picker/public.js +1 -1
- package/dist/features/timeline/adapters/inbound/Timeline.js +8 -8
- package/dist/features/timeline/meta.js +1 -1
- package/dist/features/timeline/public.js +1 -1
- package/dist/features/toast/adapters/inbound/Toast.js +1 -1
- package/dist/features/toast/public.js +2 -2
- package/dist/features/toolbar/adapters/inbound/Toolbar.js +3 -3
- package/dist/features/toolbar/public.js +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.js +6 -6
- package/dist/features/tree-view/adapters/inbound/TreeView.js +4 -4
- package/dist/features/tree-view/adapters/inbound/web-artifact/TreeItemRow.js +2 -2
- package/dist/features/tree-view/adapters/inbound/web-artifact/TreeView.js +2 -2
- package/dist/features/tree-view/public.js +2 -2
- package/dist/features/typography/adapters/inbound/Heading.js +7 -7
- package/dist/features/typography/adapters/inbound/Text.js +6 -6
- package/dist/features/typography/headingMeta.js +2 -2
- package/dist/features/typography/public.js +2 -2
- package/dist/features/typography/textMeta.js +2 -2
- package/dist/features/typography/utils/headingThemeRecipeMeta.js +1 -1
- package/dist/features/typography/utils/resolveHeadingRecipe.js +2 -2
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.js +1 -1
- package/dist/features/typography/utils/resolveTextStyle.js +1 -1
- package/dist/features/typography/utils/resolveTextThemeRecipe.js +1 -1
- package/dist/features/typography/utils/resolveTypographyThemeRecipeFields.js +1 -1
- package/dist/features/typography/utils/textThemeRecipeMeta.js +1 -1
- package/dist/features/typography/utils/typographyThemeRecipeFields.js +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js +12 -12
- package/dist/features/uploader/composition/createUploadPicker.js +3 -3
- package/dist/features/uploader/public.js +2 -2
- package/dist/features/video/adapters/inbound/Video.js +1 -1
- package/dist/features/video/adapters/inbound/Video.native.js +6 -6
- package/dist/features/video/adapters/inbound/Video.web.js +5 -5
- package/dist/features/video/public.js +1 -1
- package/dist/index.js +11 -11
- package/dist/readerFree.js +84 -84
- package/package.json +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DatePicker } from './DatePicker.web';
|
|
1
|
+
export { DatePicker } from './DatePicker.web.js';
|
|
2
2
|
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useBottomSheet } from '../../../bottom-sheet/public';
|
|
3
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
4
|
-
import { DatePickerContent } from '../../composition/DatePickerContent';
|
|
5
|
-
import { DatePickerField } from '../../composition/DatePickerField';
|
|
6
|
-
import { DatePickerTrigger } from '../../composition/DatePickerTrigger';
|
|
7
|
-
import { formatLocalDate } from '../../utils/localDate';
|
|
2
|
+
import { useBottomSheet } from '../../../bottom-sheet/public.js';
|
|
3
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
4
|
+
import { DatePickerContent } from '../../composition/DatePickerContent.js';
|
|
5
|
+
import { DatePickerField } from '../../composition/DatePickerField.js';
|
|
6
|
+
import { DatePickerTrigger } from '../../composition/DatePickerTrigger.js';
|
|
7
|
+
import { formatLocalDate } from '../../utils/localDate.js';
|
|
8
8
|
/*** Renders DatePicker with native BottomSheet presentation. */
|
|
9
9
|
export const DatePicker = withZoraThemeScope(DatePickerInner);
|
|
10
10
|
/*** Connects the shared DatePicker field and content to the native BottomSheet host. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Popover } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Surface } from '../../../surface/public';
|
|
4
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
5
|
-
import { DatePickerContent } from '../../composition/DatePickerContent';
|
|
6
|
-
import { DatePickerField } from '../../composition/DatePickerField';
|
|
7
|
-
import { DatePickerTrigger } from '../../composition/DatePickerTrigger';
|
|
8
|
-
import { formatLocalDate } from '../../utils/localDate';
|
|
3
|
+
import { Surface } from '../../../surface/public.js';
|
|
4
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
5
|
+
import { DatePickerContent } from '../../composition/DatePickerContent.js';
|
|
6
|
+
import { DatePickerField } from '../../composition/DatePickerField.js';
|
|
7
|
+
import { DatePickerTrigger } from '../../composition/DatePickerTrigger.js';
|
|
8
|
+
import { formatLocalDate } from '../../utils/localDate.js';
|
|
9
9
|
/*** Renders DatePicker with anchored web Popover presentation. */
|
|
10
10
|
export const DatePicker = withZoraThemeScope(DatePickerInner);
|
|
11
11
|
/*** Connects the shared DatePicker field and content to the web Popover host. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button } from '../../button/public';
|
|
3
|
-
import { Calendar } from '../../calendar/public';
|
|
4
|
-
import { View } from '../../layout/public';
|
|
5
|
-
import { PickerHeader } from '../../picker/composition/PickerHeader';
|
|
6
|
-
import { parseLocalDate } from '../utils/localDate';
|
|
2
|
+
import { Button } from '../../button/public.js';
|
|
3
|
+
import { Calendar } from '../../calendar/public.js';
|
|
4
|
+
import { View } from '../../layout/public.js';
|
|
5
|
+
import { PickerHeader } from '../../picker/composition/PickerHeader.js';
|
|
6
|
+
import { parseLocalDate } from '../utils/localDate.js';
|
|
7
7
|
/*** Hosts the shared compact Calendar inside the existing DatePicker overlay surfaces. */
|
|
8
8
|
export function DatePickerContent({ description, interactionPolicy, label, maxDate, minDate, onDismiss, onSelect, testID, value, }) {
|
|
9
9
|
const resolvedMaxDate = React.useMemo(() => parseLocalDate(maxDate), [maxDate]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickerField } from '../../picker/composition/PickerField';
|
|
1
|
+
import { PickerField } from '../../picker/composition/PickerField.js';
|
|
2
2
|
/*** Renders the shared DatePicker field frame around a platform-specific trigger. */
|
|
3
3
|
export function DatePickerField({ children, description, disabled, error, label, required, testID, }) {
|
|
4
4
|
return <PickerField {...{ children, description, disabled, error, label, required, testID }}/>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from '../../button/public';
|
|
2
|
-
import { parseLocalDate } from '../utils/localDate';
|
|
1
|
+
import { Button } from '../../button/public.js';
|
|
2
|
+
import { parseLocalDate } from '../utils/localDate.js';
|
|
3
3
|
/*** Renders the shared DatePicker trigger button for native and web hosts. */
|
|
4
4
|
export function DatePickerTrigger({ disabled, formatDate, interactionPolicy, onPress, placeholder = 'Choose date', testID, value, }) {
|
|
5
5
|
const displayValue = value
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DatePicker } from './adapters/inbound/DatePicker';
|
|
1
|
+
export { DatePicker } from './adapters/inbound/DatePicker.js';
|
|
2
2
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Modal as SurfaceModal } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
|
-
import { View } from '../../../layout/public';
|
|
5
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
|
-
import { Heading, Text } from '../../../typography/public';
|
|
7
|
-
import { resolveDialogWidth } from '../../utils/resolveDialogWidth';
|
|
4
|
+
import { View } from '../../../layout/public.js';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
6
|
+
import { Heading, Text } from '../../../typography/public.js';
|
|
7
|
+
import { resolveDialogWidth } from '../../utils/resolveDialogWidth.js';
|
|
8
8
|
/*** Renders the product-level dialog composition on top of the Surface modal primitive. */
|
|
9
9
|
export const Dialog = withZoraThemeScope(DialogInner);
|
|
10
10
|
/*** Connects dialog chrome and slots to the generic modal overlay. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Dialog } from './adapters/inbound/Dialog';
|
|
1
|
+
export { Dialog } from './adapters/inbound/Dialog.js';
|
|
2
2
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button } from '../../../button/public';
|
|
3
|
-
import { Card } from '../../../card/public';
|
|
4
|
-
import { View } from '../../../layout/public';
|
|
5
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
2
|
+
import { Button } from '../../../button/public.js';
|
|
3
|
+
import { Card } from '../../../card/public.js';
|
|
4
|
+
import { View } from '../../../layout/public.js';
|
|
5
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
6
6
|
function EmptyStateInner({ themeId: _themeId, mode: _mode, interactionPolicy, title, description, eyebrow, primaryAction, secondaryAction, footer, testID, }) {
|
|
7
7
|
return (<Card compact description={description} eyebrow={eyebrow} interactionPolicy={interactionPolicy} testID={testID} title={title} tone="subtle">
|
|
8
8
|
<View gap="m">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EmptyState } from './adapters/inbound/EmptyState';
|
|
1
|
+
export { EmptyState } from './adapters/inbound/EmptyState.js';
|
|
2
2
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Platform, Pressable as NativePressable, View as NativeView } from 'react-native';
|
|
3
|
-
import { TileGrid } from '../../../grid-view/public';
|
|
4
|
-
import { Icon } from '../../../icon/public';
|
|
5
|
-
import { Image } from '../../../image/public';
|
|
6
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
7
|
-
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
8
|
-
import { Text } from '../../../typography/public';
|
|
9
|
-
import { resolveExplorerSelection } from '../../application/resolveExplorerSelection';
|
|
10
|
-
import { shouldDispatchExplorerPageRequest, } from '../../application/shouldDispatchExplorerPageRequest';
|
|
11
|
-
import { shouldRequestExplorerPage } from '../../application/shouldRequestExplorerPage';
|
|
12
|
-
import { ExplorerKeyboardProxy } from './ExplorerKeyboardProxy';
|
|
13
|
-
import { useExplorerKeyboardFocus } from './useExplorerKeyboardFocus';
|
|
3
|
+
import { TileGrid } from '../../../grid-view/public.js';
|
|
4
|
+
import { Icon } from '../../../icon/public.js';
|
|
5
|
+
import { Image } from '../../../image/public.js';
|
|
6
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
7
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme.js';
|
|
8
|
+
import { Text } from '../../../typography/public.js';
|
|
9
|
+
import { resolveExplorerSelection } from '../../application/resolveExplorerSelection.js';
|
|
10
|
+
import { shouldDispatchExplorerPageRequest, } from '../../application/shouldDispatchExplorerPageRequest.js';
|
|
11
|
+
import { shouldRequestExplorerPage } from '../../application/shouldRequestExplorerPage.js';
|
|
12
|
+
import { ExplorerKeyboardProxy } from './ExplorerKeyboardProxy.js';
|
|
13
|
+
import { useExplorerKeyboardFocus } from './useExplorerKeyboardFocus.js';
|
|
14
14
|
/*** Single canonical Explorer implementation for media and file catalogue presentation. */
|
|
15
15
|
export const Explorer = withZoraThemeScope(ExplorerInner);
|
|
16
16
|
/*** Presents provider-neutral asset tiles with controlled or uncontrolled selection. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Explorer } from './Explorer';
|
|
2
|
+
import { Explorer } from './Explorer.js';
|
|
3
3
|
/*** File and folder presentation using the exact same TileGrid and selection model. */
|
|
4
4
|
export function FileExplorer(props) {
|
|
5
5
|
return <Explorer {...props}/>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Explorer } from './Explorer';
|
|
2
|
+
import { Explorer } from './Explorer.js';
|
|
3
3
|
/*** Specialized media catalogue presentation sharing the canonical Explorer/TileGrid path. */
|
|
4
4
|
export function MediaExplorer(props) {
|
|
5
5
|
return (<Explorer {...props} items={props.items.filter((item) => item.kind === 'image' || item.kind === 'video' || item.kind === 'audio')}/>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { getExplorerNextFocusId } from '../../application/getExplorerNextFocusId';
|
|
2
|
+
import { getExplorerNextFocusId } from '../../application/getExplorerNextFocusId.js';
|
|
3
3
|
/*** Tracks the one keyboard tab stop and restores focus only after a virtualized tile mounts. */
|
|
4
4
|
export function useExplorerKeyboardFocus(items, columns, disabled, visibleIds, onNavigate) {
|
|
5
5
|
const [focusedId, setFocusedId] = React.useState(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Explorer } from './adapters/inbound/Explorer';
|
|
2
|
-
export { FileExplorer } from './adapters/inbound/FileExplorer';
|
|
3
|
-
export { MediaExplorer } from './adapters/inbound/MediaExplorer';
|
|
4
|
-
export { getExplorerNextFocusId } from './application/getExplorerNextFocusId';
|
|
5
|
-
export { resolveExplorerSelection } from './application/resolveExplorerSelection';
|
|
1
|
+
export { Explorer } from './adapters/inbound/Explorer.js';
|
|
2
|
+
export { FileExplorer } from './adapters/inbound/FileExplorer.js';
|
|
3
|
+
export { MediaExplorer } from './adapters/inbound/MediaExplorer.js';
|
|
4
|
+
export { getExplorerNextFocusId } from './application/getExplorerNextFocusId.js';
|
|
5
|
+
export { resolveExplorerSelection } from './application/resolveExplorerSelection.js';
|
|
6
6
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from '../../../layout/public';
|
|
3
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
4
|
-
import { FormActions } from './FormActions';
|
|
2
|
+
import { View } from '../../../layout/public.js';
|
|
3
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
4
|
+
import { FormActions } from './FormActions.js';
|
|
5
5
|
function FormInner({ themeId: _themeId, mode: _mode, children, onSubmit, loading = false, disabled = false, submitLabel = 'Submit', actions, testID, interactionPolicy, }) {
|
|
6
6
|
return (<View gap="m" testID={testID}>
|
|
7
7
|
{children}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button } from '../../../button/public';
|
|
3
|
-
import { View } from '../../../layout/public';
|
|
4
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
2
|
+
import { Button } from '../../../button/public.js';
|
|
3
|
+
import { View } from '../../../layout/public.js';
|
|
4
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
5
5
|
function FormActionsInner({ themeId: _themeId, mode: _mode, submitLabel = 'Submit', loading = false, disabled = false, onSubmit, children, testID, interactionPolicy, }) {
|
|
6
6
|
return (<View gap="s" testID={testID}>
|
|
7
7
|
<Button disabled={disabled} fullWidth interactionPolicy={interactionPolicy} loading={loading} onPress={onSubmit}>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from '../../../layout/public';
|
|
3
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
4
|
-
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
5
|
-
import { Text } from '../../../typography/public';
|
|
2
|
+
import { View } from '../../../layout/public.js';
|
|
3
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
4
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme.js';
|
|
5
|
+
import { Text } from '../../../typography/public.js';
|
|
6
6
|
function FormErrorInner({ themeId: _themeId, mode: _mode, error, testID }) {
|
|
7
7
|
const { theme } = useZoraTheme();
|
|
8
8
|
if (!error)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Checkbox as SurfaceCheckbox } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
3
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
4
4
|
function CheckboxInner({ themeId: _themeId, mode: _mode, interactionPolicy, ...props }) {
|
|
5
5
|
return <SurfaceCheckbox {...props} interactionPolicy={interactionPolicy}/>;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Checkbox } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from '../../../../layout/public';
|
|
4
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
5
|
-
import { Text } from '../../../../typography/public';
|
|
3
|
+
import { View } from '../../../../layout/public.js';
|
|
4
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
5
|
+
import { Text } from '../../../../typography/public.js';
|
|
6
6
|
function CheckboxGroupInner({ themeId: _themeId, mode: _mode, value, onValueChange, options, orientation = 'vertical', gap = 's', color = 'primary', size = 'm', invalid = false, readOnly = false, disabled = false, testID, interactionPolicy, }) {
|
|
7
7
|
const selectedValues = new Set(value);
|
|
8
8
|
const isHorizontal = orientation === 'horizontal';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Checkbox } from './adapters/inbound/Checkbox';
|
|
2
|
-
export { CheckboxGroup } from './adapters/inbound/CheckboxGroup';
|
|
1
|
+
export { Checkbox } from './adapters/inbound/Checkbox.js';
|
|
2
|
+
export { CheckboxGroup } from './adapters/inbound/CheckboxGroup.js';
|
|
3
3
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Field as SurfaceField } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from '../../../../layout/public';
|
|
4
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
5
|
-
import { Text } from '../../../../typography/public';
|
|
3
|
+
import { View } from '../../../../layout/public.js';
|
|
4
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
5
|
+
import { Text } from '../../../../typography/public.js';
|
|
6
6
|
function FieldInner({ themeId: _themeId, mode: _mode, label, description, helperText, children, interactionPolicy: _interactionPolicy, ...props }) {
|
|
7
7
|
return (<SurfaceField {...props} helperText={helperText} label={<View gap="xs">
|
|
8
8
|
<Text variant="label" weight="semiBold">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Field } from './adapters/inbound/Field';
|
|
1
|
+
export { Field } from './adapters/inbound/Field.js';
|
|
2
2
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Form } from './adapters/inbound/Form';
|
|
2
|
-
export { FormActions } from './adapters/inbound/FormActions';
|
|
3
|
-
export { FormError } from './adapters/inbound/FormError';
|
|
4
|
-
export { Field } from './field/public';
|
|
5
|
-
export { useFormController } from './useFormController';
|
|
6
|
-
export { hasRequiredRule, validateField, validateFields, validateValue } from './utils/validation';
|
|
1
|
+
export { Form } from './adapters/inbound/Form.js';
|
|
2
|
+
export { FormActions } from './adapters/inbound/FormActions.js';
|
|
3
|
+
export { FormError } from './adapters/inbound/FormError.js';
|
|
4
|
+
export { Field } from './field/public.js';
|
|
5
|
+
export { useFormController } from './useFormController.js';
|
|
6
|
+
export { hasRequiredRule, validateField, validateFields, validateValue } from './utils/validation.js';
|
|
7
7
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Radio as SurfaceRadio } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
3
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
4
4
|
function RadioInner({ themeId: _themeId, mode: _mode, interactionPolicy, ...props }) {
|
|
5
5
|
return <SurfaceRadio {...props} interactionPolicy={interactionPolicy}/>;
|
|
6
6
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Radio } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
|
-
import { View } from '../../../../layout/public';
|
|
5
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
|
-
import { useZoraThemeRecipe } from '../../../../theme/composition/useZoraThemeRecipe';
|
|
7
|
-
import { Text } from '../../../../typography/public';
|
|
8
|
-
import { radioGroupThemeRecipeMeta } from '../../themeRecipeMeta';
|
|
9
|
-
import { resolveRadioGroupThemeRecipe } from '../../utils/resolveRadioGroupThemeRecipe';
|
|
10
|
-
import { RadioOptionControl } from './RadioOptionControl';
|
|
4
|
+
import { View } from '../../../../layout/public.js';
|
|
5
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
6
|
+
import { useZoraThemeRecipe } from '../../../../theme/composition/useZoraThemeRecipe.js';
|
|
7
|
+
import { Text } from '../../../../typography/public.js';
|
|
8
|
+
import { radioGroupThemeRecipeMeta } from '../../themeRecipeMeta.js';
|
|
9
|
+
import { resolveRadioGroupThemeRecipe } from '../../utils/resolveRadioGroupThemeRecipe.js';
|
|
10
|
+
import { RadioOptionControl } from './RadioOptionControl.js';
|
|
11
11
|
/*** Present one controlled single-choice group as inline radios or icon radio options. */
|
|
12
12
|
export const RadioGroup = withZoraThemeScope(RadioGroupInner);
|
|
13
13
|
/*** Resolve shared presentation once and preserve a single interaction boundary per option. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useTheme } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Platform, Pressable, StyleSheet, View } from 'react-native';
|
|
4
|
-
import { Icon } from '../../../../icon/public';
|
|
5
|
-
import { Text } from '../../../../typography/public';
|
|
6
|
-
import { handleRadioOptionKeyDown } from '../../utils/handleRadioOptionKeyDown';
|
|
7
|
-
import { resolveRadioOptionColors } from '../../utils/resolveRadioOptionColors';
|
|
4
|
+
import { Icon } from '../../../../icon/public.js';
|
|
5
|
+
import { Text } from '../../../../typography/public.js';
|
|
6
|
+
import { handleRadioOptionKeyDown } from '../../utils/handleRadioOptionKeyDown.js';
|
|
7
|
+
import { resolveRadioOptionColors } from '../../utils/resolveRadioOptionColors.js';
|
|
8
8
|
/*** Render a selectable icon radio option with one accessible radio target and a trailing check. */
|
|
9
9
|
export function RadioOptionControl(props) {
|
|
10
10
|
const { theme } = useTheme();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Radio } from './adapters/inbound/Radio';
|
|
2
|
-
export { RadioGroup } from './adapters/inbound/RadioGroup';
|
|
1
|
+
export { Radio } from './adapters/inbound/Radio.js';
|
|
2
|
+
export { RadioGroup } from './adapters/inbound/RadioGroup.js';
|
|
3
3
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DIRECTION_MODIFIERS } from '../constants';
|
|
1
|
+
import { DIRECTION_MODIFIERS } from '../constants.js';
|
|
2
2
|
/*** Select a focused radio option through the React Native keyboard event contract. */
|
|
3
3
|
export function handleRadioOptionKeyDown(key, preventDefault, select, navigate) {
|
|
4
4
|
if (key === ' ') {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
2
|
-
import { TextInput } from '../../../text-input/public';
|
|
1
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
2
|
+
import { TextInput } from '../../../text-input/public.js';
|
|
3
3
|
/*** Renders a search-focused text input with clear and submit behavior. */
|
|
4
4
|
export const SearchInput = withZoraThemeScope(SearchInputInner);
|
|
5
5
|
/*** Connects search semantics to the shared ZORA TextInput control. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SearchInput } from './adapters/inbound/SearchInput';
|
|
1
|
+
export { SearchInput } from './adapters/inbound/SearchInput.js';
|
|
2
2
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Select } from './Select.web';
|
|
1
|
+
export { Select } from './Select.web.js';
|
|
2
2
|
//# sourceMappingURL=Select.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
|
-
import { BottomSheetFlatList, useBottomSheet } from '../../../../bottom-sheet/public';
|
|
4
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
5
|
-
import { SelectField } from '../../composition/SelectField';
|
|
6
|
-
import { SelectOptionRow } from '../../composition/SelectOptionRow';
|
|
7
|
-
import { SelectSearchInput } from '../../composition/SelectSearchInput';
|
|
8
|
-
import { SelectTrigger } from '../../composition/SelectTrigger';
|
|
9
|
-
import { useSelectController } from '../../composition/useSelectController';
|
|
3
|
+
import { BottomSheetFlatList, useBottomSheet } from '../../../../bottom-sheet/public.js';
|
|
4
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
5
|
+
import { SelectField } from '../../composition/SelectField.js';
|
|
6
|
+
import { SelectOptionRow } from '../../composition/SelectOptionRow.js';
|
|
7
|
+
import { SelectSearchInput } from '../../composition/SelectSearchInput.js';
|
|
8
|
+
import { SelectTrigger } from '../../composition/SelectTrigger.js';
|
|
9
|
+
import { useSelectController } from '../../composition/useSelectController.js';
|
|
10
10
|
const SELECT_SHEET_MAX_HEIGHT = 480;
|
|
11
11
|
/*** Renders Select with BottomSheetFlatList presentation on native platforms. */
|
|
12
12
|
export const Select = withZoraThemeScope(SelectInner);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Popover } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { View } from '../../../../layout/public';
|
|
4
|
-
import { Surface } from '../../../../surface/public';
|
|
5
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
|
-
import { SelectField } from '../../composition/SelectField';
|
|
7
|
-
import { SelectOptionRow } from '../../composition/SelectOptionRow';
|
|
8
|
-
import { SelectSearchInput } from '../../composition/SelectSearchInput';
|
|
9
|
-
import { SelectTrigger } from '../../composition/SelectTrigger';
|
|
10
|
-
import { useSelectController } from '../../composition/useSelectController';
|
|
3
|
+
import { View } from '../../../../layout/public.js';
|
|
4
|
+
import { Surface } from '../../../../surface/public.js';
|
|
5
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
6
|
+
import { SelectField } from '../../composition/SelectField.js';
|
|
7
|
+
import { SelectOptionRow } from '../../composition/SelectOptionRow.js';
|
|
8
|
+
import { SelectSearchInput } from '../../composition/SelectSearchInput.js';
|
|
9
|
+
import { SelectTrigger } from '../../composition/SelectTrigger.js';
|
|
10
|
+
import { useSelectController } from '../../composition/useSelectController.js';
|
|
11
11
|
/*** Renders Select with anchored Popover presentation on web. */
|
|
12
12
|
export const Select = withZoraThemeScope(SelectInner);
|
|
13
13
|
/*** Connects shared Select state and controls to the web Popover host. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Pressable } from '@ankhorage/surface';
|
|
2
|
-
import { Button } from '../../../button/public';
|
|
3
|
-
import { Icon } from '../../../icon/public';
|
|
4
|
-
import { Image } from '../../../image/public';
|
|
5
|
-
import { View } from '../../../layout/public';
|
|
6
|
-
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
7
|
-
import { Text } from '../../../typography/public';
|
|
2
|
+
import { Button } from '../../../button/public.js';
|
|
3
|
+
import { Icon } from '../../../icon/public.js';
|
|
4
|
+
import { Image } from '../../../image/public.js';
|
|
5
|
+
import { View } from '../../../layout/public.js';
|
|
6
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme.js';
|
|
7
|
+
import { Text } from '../../../typography/public.js';
|
|
8
8
|
const SELECTED_ICON = { name: 'checkmark' };
|
|
9
9
|
/*** Renders one Select option with shared web/native selection semantics. */
|
|
10
10
|
export function SelectOptionRow({ interactionPolicy, onSelect, option, selected, testID, }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { View } from '../../../layout/public';
|
|
2
|
-
import { SearchInput } from '../../search-input/public';
|
|
1
|
+
import { View } from '../../../layout/public.js';
|
|
2
|
+
import { SearchInput } from '../../search-input/public.js';
|
|
3
3
|
/*** Renders the optional controlled search input shared by Select presentations. */
|
|
4
4
|
export function SelectSearchInput({ onSearchChange, props, searchValue, }) {
|
|
5
5
|
if (!props.searchable)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Pressable } from '@ankhorage/surface';
|
|
2
|
-
import { Button } from '../../../button/public';
|
|
3
|
-
import { Icon } from '../../../icon/public';
|
|
4
|
-
import { Image } from '../../../image/public';
|
|
5
|
-
import { View } from '../../../layout/public';
|
|
6
|
-
import { useZoraTheme } from '../../../theme/composition/useZoraTheme';
|
|
7
|
-
import { Text } from '../../../typography/public';
|
|
2
|
+
import { Button } from '../../../button/public.js';
|
|
3
|
+
import { Icon } from '../../../icon/public.js';
|
|
4
|
+
import { Image } from '../../../image/public.js';
|
|
5
|
+
import { View } from '../../../layout/public.js';
|
|
6
|
+
import { useZoraTheme } from '../../../theme/composition/useZoraTheme.js';
|
|
7
|
+
import { Text } from '../../../typography/public.js';
|
|
8
8
|
const SELECT_CHEVRON_ICON = { name: 'chevron-down' };
|
|
9
9
|
/*** Renders the shared Select trigger with the resolved option label or placeholder. */
|
|
10
10
|
export function SelectTrigger({ displayLabel, leadingMedia, onPress, props, }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { getVisibleSelectOptions } from './getVisibleSelectOptions';
|
|
2
|
+
import { getVisibleSelectOptions } from './getVisibleSelectOptions.js';
|
|
3
3
|
/*** Resolves controlled or uncontrolled Select value state and the selected option. */
|
|
4
4
|
export function useSelectController(props) {
|
|
5
5
|
const { defaultSearchValue, defaultValue, onSearchChange, onValueChange, options, searchValue: controlledSearchValue, value: controlledValue, } = props;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Select } from './adapters/inbound/Select';
|
|
1
|
+
export { Select } from './adapters/inbound/Select.js';
|
|
2
2
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Switch as SurfaceSwitch } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
3
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
4
4
|
/*** Renders the ZORA switch while preserving the canonical Surface switch contract. */
|
|
5
5
|
export const Switch = withZoraThemeScope(SwitchInner);
|
|
6
6
|
function SwitchInner({ themeId: _themeId, mode: _mode, interactionPolicy, ...props }) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Switch } from './adapters/inbound/Switch';
|
|
1
|
+
export { Switch } from './adapters/inbound/Switch.js';
|
|
2
2
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Icon as SurfaceIcon, TextInput as SurfaceTextInput } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { IconButton } from '../../../../button/public';
|
|
4
|
-
import { resolveIconSize } from '../../../../icon/utils/resolveIconSize';
|
|
5
|
-
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope';
|
|
6
|
-
import { useZoraTheme } from '../../../../theme/composition/useZoraTheme';
|
|
3
|
+
import { IconButton } from '../../../../button/public.js';
|
|
4
|
+
import { resolveIconSize } from '../../../../icon/utils/resolveIconSize.js';
|
|
5
|
+
import { withZoraThemeScope } from '../../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
6
|
+
import { useZoraTheme } from '../../../../theme/composition/useZoraTheme.js';
|
|
7
7
|
function TextInputInner({ themeId: _themeId, mode: _mode, size = 'l', leadingIcon, trailingIcon, trailingAction, disabled, readOnly, interactionPolicy, ...props }) {
|
|
8
8
|
const { theme } = useZoraTheme();
|
|
9
9
|
const iconSize = resolveIconSize(size);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { TextInput } from './adapters/inbound/TextInput';
|
|
1
|
+
export { TextInput } from './adapters/inbound/TextInput.js';
|
|
2
2
|
//# sourceMappingURL=public.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { validateFields } from './utils/validation';
|
|
2
|
+
import { validateFields } from './utils/validation.js';
|
|
3
3
|
function createInitialValues(fields, initialValues) {
|
|
4
4
|
const values = fields.reduce((nextValues, field) => {
|
|
5
5
|
nextValues[field.name] = initialValues?.[field.name] ?? '';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RuntimeRendererConfigProvider } from '@ankhorage/runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
4
|
-
import { createGameBindingContext } from '../../composition/createGameBindingContext';
|
|
5
|
-
import { createGameMeasurementRegistry } from '../../composition/createGameMeasurementRegistry';
|
|
6
|
-
import { GameRuntimeContext } from '../../composition/GameRuntimeContext';
|
|
7
|
-
import { useGameRuntime } from '../../composition/useGameRuntime';
|
|
8
|
-
import { GameField } from './GameField';
|
|
3
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
4
|
+
import { createGameBindingContext } from '../../composition/createGameBindingContext.js';
|
|
5
|
+
import { createGameMeasurementRegistry } from '../../composition/createGameMeasurementRegistry.js';
|
|
6
|
+
import { GameRuntimeContext } from '../../composition/GameRuntimeContext.js';
|
|
7
|
+
import { useGameRuntime } from '../../composition/useGameRuntime.js';
|
|
8
|
+
import { GameField } from './GameField.js';
|
|
9
9
|
/*** Bind one serializable game definition to a local transient session and presentation field. */
|
|
10
10
|
export const Game = withZoraThemeScope(GameInner);
|
|
11
11
|
/*** Render the game session inside the inherited ZORA theme scope. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Animated, StyleSheet } from 'react-native';
|
|
3
|
-
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
|
|
4
|
-
import { useGameEntityAnimatedStyle } from '../../utils/useGameEntityAnimatedStyle';
|
|
5
|
-
import { useGameEntityMeasurement } from '../../utils/useGameEntityMeasurement';
|
|
3
|
+
import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope.js';
|
|
4
|
+
import { useGameEntityAnimatedStyle } from '../../utils/useGameEntityAnimatedStyle.js';
|
|
5
|
+
import { useGameEntityMeasurement } from '../../utils/useGameEntityMeasurement.js';
|
|
6
6
|
/*** Render one generic positioned game entity without owning gameplay semantics. */
|
|
7
7
|
export const GameEntity = withZoraThemeScope(GameEntityInner);
|
|
8
8
|
/*** Render the positioned entity inside the inherited ZORA theme scope. */
|