@ankhorage/zora 28.10.1 → 28.11.1
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 +18 -0
- package/README.md +1 -1
- package/dist/capabilities/index.js +2 -1
- package/dist/capabilities/index.js.map +3 -3
- package/dist/constants/authoring.d.ts +3 -3
- package/dist/constants/authoring.d.ts.map +1 -1
- package/dist/constants/authoring.js +1 -0
- package/dist/constants/authoring.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/calendar/adapters/inbound/Calendar.d.ts.map +1 -1
- package/dist/features/calendar/adapters/inbound/Calendar.js +91 -7
- package/dist/features/calendar/adapters/inbound/Calendar.js.map +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/flow/adapters/inbound/FlowCanvas.d.ts +5 -0
- package/dist/features/flow/adapters/inbound/FlowCanvas.d.ts.map +1 -0
- package/dist/features/flow/adapters/inbound/FlowCanvas.js +261 -0
- package/dist/features/flow/adapters/inbound/FlowCanvas.js.map +1 -0
- package/dist/features/flow/application/createFlowEditorController.d.ts +13 -0
- package/dist/features/flow/application/createFlowEditorController.d.ts.map +1 -0
- package/dist/features/flow/application/createFlowEditorController.js +86 -0
- package/dist/features/flow/application/createFlowEditorController.js.map +1 -0
- package/dist/features/flow/application/getFlowPortAnchor.d.ts +10 -0
- package/dist/features/flow/application/getFlowPortAnchor.d.ts.map +1 -0
- package/dist/features/flow/application/getFlowPortAnchor.js +18 -0
- package/dist/features/flow/application/getFlowPortAnchor.js.map +1 -0
- package/dist/features/flow/application/mapFlowViewport.d.ts +10 -0
- package/dist/features/flow/application/mapFlowViewport.d.ts.map +1 -0
- package/dist/features/flow/application/mapFlowViewport.js +22 -0
- package/dist/features/flow/application/mapFlowViewport.js.map +1 -0
- package/dist/features/flow/public.d.ts +3 -0
- package/dist/features/flow/public.d.ts.map +1 -0
- package/dist/features/flow/public.js +2 -0
- package/dist/features/flow/public.js.map +1 -0
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/graph-node/adapters/inbound/GraphNode.d.ts +5 -0
- package/dist/features/graph-node/adapters/inbound/GraphNode.d.ts.map +1 -0
- package/dist/features/graph-node/adapters/inbound/GraphNode.js +190 -0
- package/dist/features/graph-node/adapters/inbound/GraphNode.js.map +1 -0
- package/dist/features/graph-node/getGraphNodePortGeometry.d.ts +17 -0
- package/dist/features/graph-node/getGraphNodePortGeometry.d.ts.map +1 -0
- package/dist/features/graph-node/getGraphNodePortGeometry.js +23 -0
- package/dist/features/graph-node/getGraphNodePortGeometry.js.map +1 -0
- package/dist/features/graph-node/public.d.ts +3 -0
- package/dist/features/graph-node/public.d.ts.map +1 -0
- package/dist/features/graph-node/public.js +2 -0
- package/dist/features/graph-node/public.js.map +1 -0
- package/dist/features/grid-view/adapters/inbound/GridView.d.ts +1 -1
- package/dist/features/grid-view/adapters/inbound/GridView.d.ts.map +1 -1
- package/dist/features/grid-view/adapters/inbound/GridView.js +105 -41
- package/dist/features/grid-view/adapters/inbound/GridView.js.map +1 -1
- package/dist/features/grid-view/application/createGridScrollSync.d.ts +2 -5
- package/dist/features/grid-view/application/createGridScrollSync.d.ts.map +1 -1
- package/dist/features/grid-view/application/createGridScrollSync.js +109 -45
- package/dist/features/grid-view/application/createGridScrollSync.js.map +1 -1
- package/dist/features/grid-view/public.d.ts +1 -1
- package/dist/features/grid-view/public.d.ts.map +1 -1
- package/dist/features/grid-view/public.js.map +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/screenMeta.d.ts +1 -1
- package/dist/features/layout/scrollViewMeta.d.ts +1 -1
- package/dist/features/layout/utils/createScrollGestureLock.d.ts.map +1 -1
- package/dist/features/layout/utils/createScrollGestureLock.js +4 -0
- package/dist/features/layout/utils/createScrollGestureLock.js.map +1 -1
- package/dist/features/layout/viewMeta.d.ts +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/master-detail/masterDetailMeta.d.ts +1 -1
- package/dist/features/popover/popoverMeta.d.ts +1 -1
- package/dist/features/reader/meta.d.ts +2 -2
- package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
- package/dist/features/scanner/meta.d.ts +2 -2
- package/dist/features/section/screenSectionMeta.d.ts +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/features/theme/node.d.ts +5 -0
- package/dist/features/theme/node.d.ts.map +1 -0
- package/dist/features/theme/node.js +4 -0
- package/dist/features/theme/node.js.map +1 -0
- package/dist/features/theme/public.d.ts +2 -0
- package/dist/features/theme/public.d.ts.map +1 -1
- package/dist/features/theme/public.js +1 -0
- package/dist/features/theme/public.js.map +1 -1
- package/dist/features/time-grid/adapters/inbound/TimeGrid.d.ts +1 -1
- package/dist/features/time-grid/adapters/inbound/TimeGrid.d.ts.map +1 -1
- package/dist/features/time-grid/adapters/inbound/TimeGrid.js +45 -22
- package/dist/features/time-grid/adapters/inbound/TimeGrid.js.map +1 -1
- package/dist/types/color.d.ts +3 -3
- package/dist/types/color.d.ts.map +1 -1
- package/dist/types/color.js.map +1 -1
- package/dist/types/flow.d.ts +81 -0
- package/dist/types/flow.d.ts.map +1 -0
- package/dist/types/flow.js +2 -0
- package/dist/types/flow.js.map +1 -0
- package/dist/types/graph-node.d.ts +42 -0
- package/dist/types/graph-node.d.ts.map +1 -0
- package/dist/types/graph-node.js +2 -0
- package/dist/types/graph-node.js.map +1 -0
- package/dist/types/grid-view.d.ts +27 -3
- package/dist/types/grid-view.d.ts.map +1 -1
- package/dist/types/grid-view.js.map +1 -1
- package/dist/types/layout.d.ts +2 -0
- package/dist/types/layout.d.ts.map +1 -1
- package/dist/types/layout.js.map +1 -1
- package/dist/types/time-grid.d.ts +9 -0
- package/dist/types/time-grid.d.ts.map +1 -1
- package/dist/types/time-grid.js.map +1 -1
- package/package.json +24 -6
- package/src/constants/authoring.ts +1 -0
- package/src/features/calendar/adapters/inbound/Calendar.interaction.test.tsx +65 -4
- package/src/features/calendar/adapters/inbound/Calendar.tsx +172 -22
- package/src/features/flow/adapters/inbound/FlowCanvas.tsx +501 -0
- package/src/features/flow/application/createFlowEditorController.test.ts +146 -0
- package/src/features/flow/application/createFlowEditorController.ts +99 -0
- package/src/features/flow/application/getFlowPortAnchor.test.ts +23 -0
- package/src/features/flow/application/getFlowPortAnchor.ts +30 -0
- package/src/features/flow/application/mapFlowViewport.test.ts +11 -0
- package/src/features/flow/application/mapFlowViewport.ts +29 -0
- package/src/features/flow/public.test.ts +7 -0
- package/src/features/flow/public.ts +13 -0
- package/src/features/graph-node/adapters/inbound/GraphNode.test.tsx +80 -0
- package/src/features/graph-node/adapters/inbound/GraphNode.tsx +259 -0
- package/src/features/graph-node/getGraphNodePortGeometry.test.ts +35 -0
- package/src/features/graph-node/getGraphNodePortGeometry.ts +41 -0
- package/src/features/graph-node/public.test.ts +7 -0
- package/src/features/graph-node/public.ts +2 -0
- package/src/features/grid-view/adapters/inbound/GridView.nativeScrollSync.test.tsx +198 -7
- package/src/features/grid-view/adapters/inbound/GridView.tsx +248 -145
- package/src/features/grid-view/application/createGridScrollSync.test.ts +46 -17
- package/src/features/grid-view/application/createGridScrollSync.ts +100 -43
- package/src/features/grid-view/public.ts +6 -1
- package/src/features/layout/utils/createScrollGestureLock.ts +4 -0
- package/src/features/theme/application/use-cases/compileZoraTheme.test.ts +1 -1
- package/src/features/theme/node.ts +18 -0
- package/src/features/theme/public.ts +7 -0
- package/src/features/time-grid/adapters/inbound/TimeGrid.tsx +64 -21
- package/src/platformAcceptance.test.ts +15 -11
- package/src/types/color.ts +3 -3
- package/src/types/flow.ts +99 -0
- package/src/types/graph-node.ts +45 -0
- package/src/types/grid-view.ts +25 -3
- package/src/types/layout.ts +2 -0
- package/src/types/time-grid.ts +9 -0
- package/web-dist/chunks/{Accordion-9dq115tn.js → Accordion-064hgrct.js} +3 -3
- package/web-dist/chunks/{Accordion-wbf7gqrm.js → Accordion-2b3sd76b.js} +3 -3
- package/web-dist/chunks/{Accordion-k9n1yse4.js → Accordion-2kv6p7by.js} +10 -38
- package/web-dist/chunks/{Accordion-6gc0jw1n.js → Accordion-5x4cv0kv.js} +1 -1
- package/web-dist/chunks/{Accordion-r8swmfjm.js → Accordion-6d63tc7d.js} +1 -1
- package/web-dist/chunks/{Accordion-vbz1mjm6.js → Accordion-7eysykr1.js} +4 -4
- package/web-dist/chunks/{Accordion-q2yxtdzc.js → Accordion-95003ycq.js} +144 -27
- package/web-dist/chunks/{Accordion-hadw5304.js → Accordion-98886mbn.js} +1 -1
- package/web-dist/chunks/{Accordion-vtbs98r4.js → Accordion-a0hbjxg9.js} +4 -4
- package/web-dist/chunks/{Accordion-73p2mg3h.js → Accordion-a49s4ywn.js} +4 -4
- package/web-dist/chunks/{Accordion-tb0vc91c.js → Accordion-a8b6g53f.js} +4 -4
- package/web-dist/chunks/{Accordion-25v2vczc.js → Accordion-afxbyvwp.js} +3 -3
- package/web-dist/chunks/{Accordion-g5pvs1aa.js → Accordion-ajqj6ymg.js} +5 -5
- package/web-dist/chunks/{Accordion-w2kx944a.js → Accordion-ak6dvant.js} +3 -3
- package/web-dist/chunks/{Accordion-778fjjsh.js → Accordion-b1tqkxx6.js} +3 -3
- package/web-dist/chunks/{Accordion-rp9cjtpg.js → Accordion-bm30dkbw.js} +2 -2
- package/web-dist/chunks/{Accordion-rsw5jt7m.js → Accordion-cah5j61y.js} +2 -2
- package/web-dist/chunks/{Accordion-pr1tv6jx.js → Accordion-dfr26j8m.js} +1 -1
- package/web-dist/chunks/{Accordion-zmrbktd8.js → Accordion-dnfgtbq3.js} +8 -8
- package/web-dist/chunks/{Accordion-m3tq2vcc.js → Accordion-dy1j2a7p.js} +6 -6
- package/web-dist/chunks/{Accordion-7pgh8q4h.js → Accordion-e9jwetg7.js} +2 -2
- package/web-dist/chunks/{Accordion-gnkzvj03.js → Accordion-e9xmwxzp.js} +1 -1
- package/web-dist/chunks/{Accordion-q8ymmar7.js → Accordion-ek0hh2nx.js} +4 -4
- package/web-dist/chunks/{Accordion-2berhsg5.js → Accordion-et7xzm6k.js} +9 -9
- package/web-dist/chunks/Accordion-eysfka31.js +1590 -0
- package/web-dist/chunks/{Accordion-59x6e7bs.js → Accordion-gb3mfjmx.js} +43 -20
- package/web-dist/chunks/{Accordion-3xfqmr1r.js → Accordion-gy3bx3xa.js} +2 -2
- package/web-dist/chunks/{Accordion-tj4fe6wk.js → Accordion-h2rnzgyv.js} +3 -3
- package/web-dist/chunks/Accordion-hbwhya78.js +83 -0
- package/web-dist/chunks/{Accordion-t9w365ke.js → Accordion-hbwyj12m.js} +1 -1
- package/web-dist/chunks/Accordion-jkgd7dmf.js +1 -0
- package/web-dist/chunks/{Accordion-qwftammh.js → Accordion-kxjjp03t.js} +5 -5
- package/web-dist/chunks/Accordion-mkd3k28h.js +275 -0
- package/web-dist/chunks/{Accordion-xqkkfwkm.js → Accordion-nhf8zjt4.js} +2 -2
- package/web-dist/chunks/{Accordion-hg4db1sk.js → Accordion-p84h11ek.js} +4 -4
- package/web-dist/chunks/{Accordion-zhgty1ae.js → Accordion-pagdkp07.js} +3 -3
- package/web-dist/chunks/{Accordion-dv5c27w4.js → Accordion-pjbmmr20.js} +1 -1
- package/web-dist/chunks/{Accordion-7ayxbm7k.js → Accordion-pr4a281g.js} +1 -1
- package/web-dist/chunks/{Accordion-yca8r7kx.js → Accordion-qz6ddnmv.js} +3 -3
- package/web-dist/chunks/{Accordion-dcjzxzv3.js → Accordion-rv90tjqr.js} +2 -2
- package/web-dist/chunks/{Accordion-0zk0xp73.js → Accordion-snk6nggm.js} +326 -174
- package/web-dist/chunks/{Accordion-casb2ndy.js → Accordion-th7yhwhf.js} +5 -5
- package/web-dist/chunks/{Accordion-e6ettgh0.js → Accordion-vbh3xqv6.js} +2 -2
- package/web-dist/chunks/{Accordion-vdzyhtyd.js → Accordion-w4zh2nws.js} +8 -8
- package/web-dist/chunks/Accordion-w8zke8fa.js +37 -0
- package/web-dist/chunks/{Accordion-3e60xwvy.js → Accordion-wkqemqjw.js} +1 -1
- package/web-dist/chunks/{Accordion-vwqf8kn1.js → Accordion-x9sb23p3.js} +3 -3
- package/web-dist/chunks/{Accordion-xhkphta6.js → Accordion-y6sg47rv.js} +1 -1
- package/web-dist/chunks/{Accordion-mw8zh0vs.js → Accordion-yannd7r3.js} +4 -4
- package/web-dist/chunks/{Accordion-457amtv7.js → Accordion-z3m3wvfz.js} +6 -1580
- package/web-dist/chunks/{Accordion-pvcdvh3w.js → Accordion-zagrbkq1.js} +2 -2
- package/web-dist/chunks/{Accordion-2jcas7qq.js → Accordion-zays65re.js} +5 -5
- package/web-dist/chunks/{RichTextClient-w75r2x97.js → RichTextClient-qd6gmm0x.js} +12 -11
- package/web-dist/chunks/{Video.native-bb9g33nd.js → Video.native-7zsbp5vg.js} +7 -6
- package/web-dist/components/accordion/Accordion.js +6 -5
- package/web-dist/components/accordion-item/AccordionItem.js +6 -5
- package/web-dist/components/activity-indicator/ActivityIndicator.js +1 -1
- package/web-dist/components/app-bar/AppBar.js +8 -7
- package/web-dist/components/app-header/AppHeader.js +8 -7
- package/web-dist/components/app-shell/AppShell.js +3 -2
- package/web-dist/components/audio/Audio.js +6 -5
- package/web-dist/components/auth-screen/AuthScreen.js +11 -10
- package/web-dist/components/avatar/Avatar.js +6 -5
- package/web-dist/components/avatar-group/AvatarGroup.js +6 -5
- package/web-dist/components/badge/Badge.js +2 -2
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +11 -10
- package/web-dist/components/bottom-sheet/BottomSheet.js +4 -3
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +4 -3
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +4 -3
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +4 -3
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +4 -3
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +4 -3
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +6 -5
- package/web-dist/components/button/Button.js +4 -3
- package/web-dist/components/button-group/ButtonGroup.js +4 -3
- package/web-dist/components/calendar/Calendar.js +8 -7
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +11 -10
- package/web-dist/components/card/Card.js +10 -9
- package/web-dist/components/card-back/CardBack.js +2 -2
- package/web-dist/components/card-hand/CardHand.js +2 -2
- package/web-dist/components/chat-list-item/ChatListItem.js +8 -7
- package/web-dist/components/checkbox/Checkbox.js +5 -4
- package/web-dist/components/checkbox-group/CheckboxGroup.js +5 -4
- package/web-dist/components/chess-board/ChessBoard.js +4 -3
- package/web-dist/components/chip/Chip.js +6 -5
- package/web-dist/components/chip-group/ChipGroup.js +6 -5
- package/web-dist/components/collection-editor/CollectionEditor.js +10 -9
- package/web-dist/components/color-hue-scale/ColorHueScale.js +17 -15
- package/web-dist/components/color-picker/ColorPicker.js +17 -15
- package/web-dist/components/color-picker/ColorPicker.types-0.d.ts +3 -3
- package/web-dist/components/color-tone/ColorTone.js +17 -15
- package/web-dist/components/color-tone/ColorTone.types-0.d.ts +3 -3
- package/web-dist/components/color-wheel/ColorWheel.js +17 -15
- package/web-dist/components/color-wheel/ColorWheel.types-0.d.ts +1 -1
- package/web-dist/components/content-rail/ContentRail.js +5 -4
- package/web-dist/components/data-table/DataTable.js +16 -15
- package/web-dist/components/date-picker/DatePicker.js +10 -9
- package/web-dist/components/dialog/Dialog.js +5 -4
- package/web-dist/components/divider/Divider.js +3 -2
- package/web-dist/components/empty-state/EmptyState.js +11 -10
- package/web-dist/components/explorer/Explorer.js +8 -7
- package/web-dist/components/field/Field.js +5 -4
- package/web-dist/components/file-explorer/FileExplorer.js +8 -7
- package/web-dist/components/flat-list/FlatList.js +6 -5
- package/web-dist/components/flow-canvas/FlowCanvas.d.ts +7 -0
- package/web-dist/components/flow-canvas/FlowCanvas.dependency-0.d.ts +27 -0
- package/web-dist/components/flow-canvas/FlowCanvas.dependency-1.d.ts +3 -0
- package/web-dist/components/flow-canvas/FlowCanvas.js +513 -0
- package/web-dist/components/flow-canvas/FlowCanvas.types-0.d.ts +92 -0
- package/web-dist/components/flow-canvas/index.d.ts +2 -0
- package/web-dist/components/flow-canvas/index.js +2 -0
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +11 -10
- package/web-dist/components/form/Form.js +7 -6
- package/web-dist/components/form-actions/FormActions.js +7 -6
- package/web-dist/components/form-error/FormError.js +7 -6
- package/web-dist/components/game/Game.js +4 -3
- package/web-dist/components/game-entity/GameEntity.js +4 -3
- package/web-dist/components/game-field/GameField.js +4 -3
- package/web-dist/components/game-input-zone/GameInputZone.js +4 -3
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +4 -3
- package/web-dist/components/game-overlay/GameOverlay.js +4 -3
- package/web-dist/components/gradient/Gradient.js +4 -3
- package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +4 -3
- package/web-dist/components/graph-node/GraphNode.d.ts +7 -0
- package/web-dist/components/graph-node/GraphNode.dependency-0.d.ts +27 -0
- package/web-dist/components/graph-node/GraphNode.dependency-1.d.ts +3 -0
- package/web-dist/components/graph-node/GraphNode.dependency-2.d.ts +5 -0
- package/web-dist/components/graph-node/GraphNode.js +20 -0
- package/web-dist/components/graph-node/GraphNode.types-0.d.ts +46 -0
- package/web-dist/components/graph-node/index.d.ts +2 -0
- package/web-dist/components/graph-node/index.js +2 -0
- package/web-dist/components/grid/Grid.js +3 -2
- package/web-dist/components/grid-line-overlay/GridLineOverlay.js +2 -2
- package/web-dist/components/grid-ruler/GridRuler.js +2 -2
- package/web-dist/components/grid-view/GridView.d.ts +1 -1
- package/web-dist/components/grid-view/GridView.js +2 -1
- package/web-dist/components/grid-view/GridView.types-0.d.ts +21 -0
- package/web-dist/components/heading/Heading.js +2 -2
- package/web-dist/components/hero/Hero.js +10 -9
- package/web-dist/components/icon/Icon.js +2 -2
- package/web-dist/components/icon-button/IconButton.js +4 -3
- package/web-dist/components/image/Image.js +5 -4
- package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +2 -2
- package/web-dist/components/link/Link.js +2 -2
- package/web-dist/components/list/List.js +6 -5
- package/web-dist/components/list-item/ListItem.js +6 -5
- package/web-dist/components/list-section/ListSection.js +6 -5
- package/web-dist/components/master-detail/MasterDetail.js +3 -2
- package/web-dist/components/matrix-grid/MatrixGrid.js +5 -4
- package/web-dist/components/media-card/MediaCard.js +10 -9
- package/web-dist/components/media-explorer/MediaExplorer.js +8 -7
- package/web-dist/components/message-bubble/MessageBubble.js +8 -7
- package/web-dist/components/metric-card/MetricCard.js +10 -9
- package/web-dist/components/missing-element/MissingElement.js +5 -4
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +11 -10
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +11 -10
- package/web-dist/components/opening-book/OpeningBook.js +4 -3
- package/web-dist/components/otp-form/OtpForm.js +11 -10
- package/web-dist/components/pagination/Pagination.js +5 -4
- package/web-dist/components/palette-item/PaletteItem.js +10 -9
- package/web-dist/components/playing-card/PlayingCard.js +2 -2
- package/web-dist/components/poker-training-table/PokerTrainingTable.js +2 -2
- package/web-dist/components/popover/Popover.js +1 -1
- package/web-dist/components/popover-menu/PopoverMenu.js +5 -4
- package/web-dist/components/post-card/PostCard.js +10 -9
- package/web-dist/components/product-card/ProductCard.js +10 -9
- package/web-dist/components/progress/Progress.js +5 -4
- package/web-dist/components/progress-ring/ProgressRing.js +5 -4
- package/web-dist/components/radio/Radio.js +6 -5
- package/web-dist/components/radio-group/RadioGroup.js +6 -5
- package/web-dist/components/rating/Rating.js +4 -3
- package/web-dist/components/reader/Reader.js +11 -10
- package/web-dist/components/rich-text/RichText.js +3 -3
- package/web-dist/components/runtime-authoring-overlay/RuntimeAuthoringOverlay.js +4 -3
- package/web-dist/components/scan-overlay/ScanOverlay.js +11 -10
- package/web-dist/components/screen/Screen.js +3 -2
- package/web-dist/components/screen-section/ScreenSection.js +5 -4
- package/web-dist/components/scroll-view/ScrollView.js +3 -2
- package/web-dist/components/search-input/SearchInput.js +6 -5
- package/web-dist/components/section-header/SectionHeader.js +5 -4
- package/web-dist/components/section-list/SectionList.js +6 -5
- package/web-dist/components/select/Select.js +11 -10
- package/web-dist/components/selectable-item/SelectableItem.js +4 -3
- package/web-dist/components/selection-provider/SelectionProvider.js +4 -3
- package/web-dist/components/sign-in-form/SignInForm.js +11 -10
- package/web-dist/components/sign-up-form/SignUpForm.js +11 -10
- package/web-dist/components/skeleton/Skeleton.js +13 -12
- package/web-dist/components/skeleton-card/SkeletonCard.js +13 -12
- package/web-dist/components/skeleton-list/SkeletonList.js +13 -12
- package/web-dist/components/skeleton-text/SkeletonText.js +13 -12
- package/web-dist/components/spatial-grid/SpatialGrid.js +2 -1
- package/web-dist/components/surface/Surface.js +2 -2
- package/web-dist/components/switch/Switch.js +1 -1
- package/web-dist/components/tab/Tab.js +2 -2
- package/web-dist/components/tab-list/TabList.js +2 -2
- package/web-dist/components/tab-panel/TabPanel.js +2 -2
- package/web-dist/components/tabletop-table/TabletopTable.js +2 -2
- package/web-dist/components/tabs/Tabs.js +2 -2
- package/web-dist/components/text/Text.js +2 -2
- package/web-dist/components/text-input/TextInput.js +5 -4
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +4 -3
- package/web-dist/components/tile-grid/TileGrid.js +2 -1
- package/web-dist/components/time-grid/TimeGrid.d.ts +1 -1
- package/web-dist/components/time-grid/TimeGrid.dependency-2.d.ts +13 -0
- package/web-dist/components/time-grid/TimeGrid.js +3 -2
- package/web-dist/components/time-grid/TimeGrid.types-0.d.ts +10 -0
- package/web-dist/components/time-picker/TimePicker.js +7 -6
- package/web-dist/components/timeline/Timeline.js +6 -5
- package/web-dist/components/toast/Toast.js +2 -2
- package/web-dist/components/toast-provider/ToastProvider.js +2 -2
- package/web-dist/components/toolbar/Toolbar.js +11 -10
- package/web-dist/components/tree-item/TreeItem.js +9 -8
- package/web-dist/components/uploader/Uploader.js +13 -12
- package/web-dist/components/video/Video.js +7 -6
- package/web-dist/components/view/View.js +3 -2
- package/web-dist/components/zora-provider/ZoraProvider.d.ts +7 -0
- package/web-dist/components/zora-provider/ZoraProvider.dependency-0.d.ts +15 -0
- package/web-dist/components/zora-provider/ZoraProvider.js +11 -0
- package/web-dist/components/zora-provider/ZoraProvider.types-0.d.ts +19 -0
- package/web-dist/components/zora-provider/index.d.ts +2 -0
- package/web-dist/components/zora-provider/index.js +2 -0
- package/web-dist/components/zora-theme-scope/ZoraThemeScope.d.ts +14 -0
- package/web-dist/components/zora-theme-scope/ZoraThemeScope.js +11 -0
- package/web-dist/components/zora-theme-scope/ZoraThemeScope.types-0.d.ts +3 -0
- package/web-dist/components/zora-theme-scope/index.d.ts +2 -0
- package/web-dist/components/zora-theme-scope/index.js +2 -0
- package/web-dist/components/zora-web-style-sheet/ZoraWebStyleSheet.js +3 -2
- package/web-dist/manifest.json +1059 -832
- package/web-dist/runtime/ZoraProvider.js +4 -80
package/src/types/grid-view.ts
CHANGED
|
@@ -8,6 +8,17 @@ import type React from 'react';
|
|
|
8
8
|
|
|
9
9
|
import type { ZoraBaseProps } from './base';
|
|
10
10
|
|
|
11
|
+
/** Pixel mapping handed to a world layer so it can draw in the same coordinates as the items. */
|
|
12
|
+
export interface GridWorldLayerContext {
|
|
13
|
+
/** Pixel position of world coordinate (0, 0) inside the layer. */
|
|
14
|
+
readonly origin: { readonly x: number; readonly y: number };
|
|
15
|
+
readonly pixelsPerUnitX: number;
|
|
16
|
+
readonly pixelsPerUnitY: number;
|
|
17
|
+
/** Pixel size of the scrollable layer. */
|
|
18
|
+
readonly width: number;
|
|
19
|
+
readonly height: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
11
22
|
/** The renderer owns presentation only; world geometry comes from grid-view. */
|
|
12
23
|
export interface GridViewProps extends ZoraBaseProps {
|
|
13
24
|
items: readonly GridRectItem[];
|
|
@@ -37,6 +48,13 @@ export interface GridViewProps extends ZoraBaseProps {
|
|
|
37
48
|
revealPaddingPixels?: number;
|
|
38
49
|
/** Keeps the rendered viewport fixed while preserving interaction within rendered items. */
|
|
39
50
|
viewportInteraction?: 'enabled' | 'locked';
|
|
51
|
+
/** Shows or hides the built-in pan and zoom buttons while keeping scroll and pinch interaction. */
|
|
52
|
+
viewportControls?: 'visible' | 'hidden';
|
|
53
|
+
/**
|
|
54
|
+
* Renders content in world coordinates beneath the items, scrolling and zooming with them.
|
|
55
|
+
* The layer is not virtualized and does not receive touches outside its own children.
|
|
56
|
+
*/
|
|
57
|
+
renderWorldLayer?: (layer: GridWorldLayerContext) => React.ReactNode;
|
|
40
58
|
onViewportChange?: (viewport: GridViewport) => void;
|
|
41
59
|
onVisibleItemIdsChange?: (ids: readonly string[]) => void;
|
|
42
60
|
renderItem: (item: GridRectItem) => React.ReactNode;
|
|
@@ -85,6 +103,8 @@ export interface GridPendingScroll {
|
|
|
85
103
|
readonly animated: boolean;
|
|
86
104
|
readonly expiresAt: number;
|
|
87
105
|
readonly target: number;
|
|
106
|
+
/** Keeps ownership until the native offset returns to its locked-gesture restore target. */
|
|
107
|
+
readonly restoring?: boolean;
|
|
88
108
|
}
|
|
89
109
|
|
|
90
110
|
/** Native capabilities and clock used by the programmatic-versus-user scroll arbiter. */
|
|
@@ -93,8 +113,8 @@ export interface GridScrollSyncOptions {
|
|
|
93
113
|
readonly scrollTo: (axis: GridScrollAxis, offset: number, animated: boolean) => void;
|
|
94
114
|
/** Reports a genuine user scroll as the pixel displacement of the native offset. */
|
|
95
115
|
readonly onUserScroll: (axis: GridScrollAxis, displacement: number) => void;
|
|
96
|
-
/**
|
|
97
|
-
readonly
|
|
116
|
+
/** Enables browser scroll events that lack native drag lifecycle signals. */
|
|
117
|
+
readonly acceptUnownedScroll?: boolean;
|
|
98
118
|
readonly now?: () => number;
|
|
99
119
|
readonly schedule?: (callback: () => void, delay: number) => ReturnType<typeof setTimeout>;
|
|
100
120
|
readonly cancel?: (handle: ReturnType<typeof setTimeout>) => void;
|
|
@@ -106,11 +126,13 @@ export interface GridScrollSync {
|
|
|
106
126
|
readonly isCurrent: (position: GridScrollPosition) => boolean;
|
|
107
127
|
/** Moves native scrolling to a viewport-derived position. */
|
|
108
128
|
readonly request: (position: GridScrollPosition, animated: boolean) => void;
|
|
129
|
+
/** Restores one native axis after a descendant gesture displaced it without publishing a pan. */
|
|
130
|
+
readonly restore: (axis: GridScrollAxis, offset: number, target: number) => void;
|
|
109
131
|
/** Routes one native scroll event. */
|
|
110
132
|
readonly scrolled: (axis: GridScrollAxis, offset: number) => void;
|
|
111
133
|
/** Hands an axis to the user, adopting the native offset at the start of their drag. */
|
|
112
134
|
readonly dragBegan: (axis: GridScrollAxis, offset: number) => void;
|
|
113
|
-
/** Adopts the final native offset
|
|
135
|
+
/** Adopts the final native offset after a genuine user gesture ends. */
|
|
114
136
|
readonly scrollEnded: (axis: GridScrollAxis, offset: number) => void;
|
|
115
137
|
/** Cancels every pending settle timer. */
|
|
116
138
|
readonly dispose: () => void;
|
package/src/types/layout.ts
CHANGED
|
@@ -35,4 +35,6 @@ export interface ScreenProps extends ZoraBaseProps {
|
|
|
35
35
|
export interface ScrollGestureLock {
|
|
36
36
|
/** Suspends scrolling until the returned release function runs; releasing twice is harmless. */
|
|
37
37
|
readonly acquire: () => () => void;
|
|
38
|
+
/** Reports whether this container currently has an active descendant gesture. */
|
|
39
|
+
readonly isActive?: () => boolean;
|
|
38
40
|
}
|
package/src/types/time-grid.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { GridLane, GridLaneInterval, GridViewport } from '@ankhorage/grid-v
|
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
|
|
4
4
|
import type { ZoraBaseProps } from './base';
|
|
5
|
+
import type { GridWorldLayerContext } from './grid-view';
|
|
5
6
|
|
|
6
7
|
/** An ordered, variable-height track rendered by the generic TimeGrid. */
|
|
7
8
|
export type TimeGridLane = GridLane;
|
|
@@ -17,8 +18,14 @@ export interface TimeGridProps extends ZoraBaseProps {
|
|
|
17
18
|
readonly lanes: readonly TimeGridLane[];
|
|
18
19
|
readonly intervals: readonly TimeGridInterval[];
|
|
19
20
|
readonly contentWidth: number;
|
|
21
|
+
/** Required for vertical time progression, where intervals extend down the grid. */
|
|
22
|
+
readonly contentHeight?: number;
|
|
20
23
|
readonly width: number;
|
|
21
24
|
readonly height: number;
|
|
25
|
+
/** Selects whether lane intervals progress across or down the shared GridView world. */
|
|
26
|
+
readonly orientation?: 'horizontal' | 'vertical';
|
|
27
|
+
/** Controls the shared viewport affordances for compositions that provide their own navigation. */
|
|
28
|
+
readonly viewportControls?: 'hidden' | 'visible';
|
|
22
29
|
readonly zoom?: number;
|
|
23
30
|
readonly overscanPixels?: number;
|
|
24
31
|
readonly focusedIntervalId?: string;
|
|
@@ -30,4 +37,6 @@ export interface TimeGridProps extends ZoraBaseProps {
|
|
|
30
37
|
readonly onVisibleIntervalIdsChange?: (ids: readonly string[]) => void;
|
|
31
38
|
readonly renderInterval: (interval: TimeGridInterval, selected: boolean) => React.ReactNode;
|
|
32
39
|
readonly renderLaneLabel?: (lane: TimeGridLane) => React.ReactNode;
|
|
40
|
+
/** Draws owner-defined geometry behind virtualized intervals without duplicating GridView. */
|
|
41
|
+
readonly renderWorldLayer?: (layer: GridWorldLayerContext) => React.ReactNode;
|
|
33
42
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
View2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-2kv6p7by.js";
|
|
8
8
|
import {
|
|
9
9
|
Heading2,
|
|
10
10
|
Text2
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
12
12
|
|
|
13
13
|
// src/features/dialog/adapters/inbound/Dialog.tsx
|
|
14
14
|
import { Modal as SurfaceModal } from "@ankhorage/surface/web";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-hbwyj12m.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-2kv6p7by.js";
|
|
11
11
|
import {
|
|
12
12
|
useZoraTheme2
|
|
13
13
|
} from "./Accordion-x1ze1wvk.js";
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
|
+
import {
|
|
6
|
+
createScrollGestureLock,
|
|
7
|
+
ScrollGestureLockContext,
|
|
8
|
+
useScrollGestureLock
|
|
9
|
+
} from "./Accordion-w8zke8fa.js";
|
|
5
10
|
|
|
6
11
|
// src/features/layout/adapters/inbound/View.tsx
|
|
7
12
|
import { View as SurfaceView } from "@ankhorage/surface/web";
|
|
@@ -111,40 +116,7 @@ function resolvePageMaxWidth(width = "default") {
|
|
|
111
116
|
|
|
112
117
|
// src/features/layout/adapters/inbound/ScrollView.tsx
|
|
113
118
|
import { ScrollView as SurfaceScrollView } from "@ankhorage/surface/web";
|
|
114
|
-
import React3 from "react";
|
|
115
|
-
|
|
116
|
-
// src/features/layout/utils/createScrollGestureLock.ts
|
|
117
|
-
function createScrollGestureLock(parent, onActiveGesturesChange) {
|
|
118
|
-
return {
|
|
119
|
-
acquire: () => {
|
|
120
|
-
const releaseParent = parent.acquire();
|
|
121
|
-
let released = false;
|
|
122
|
-
onActiveGesturesChange(1);
|
|
123
|
-
return () => {
|
|
124
|
-
if (released)
|
|
125
|
-
return;
|
|
126
|
-
released = true;
|
|
127
|
-
onActiveGesturesChange(-1);
|
|
128
|
-
releaseParent();
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// src/features/layout/adapters/inbound/ScrollGestureLockContext.ts
|
|
135
119
|
import React from "react";
|
|
136
|
-
var ScrollGestureLockContext = React.createContext(undefined);
|
|
137
|
-
|
|
138
|
-
// src/features/layout/adapters/inbound/useScrollGestureLock.ts
|
|
139
|
-
import React2 from "react";
|
|
140
|
-
var unlockedScrollGesture = { acquire: () => () => {
|
|
141
|
-
return;
|
|
142
|
-
} };
|
|
143
|
-
function useScrollGestureLock() {
|
|
144
|
-
return React2.useContext(ScrollGestureLockContext) ?? unlockedScrollGesture;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// src/features/layout/adapters/inbound/ScrollView.tsx
|
|
148
120
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
149
121
|
var ScrollView2 = withZoraThemeScope(ScrollViewInner);
|
|
150
122
|
function ScrollViewInner({
|
|
@@ -156,8 +128,8 @@ function ScrollViewInner({
|
|
|
156
128
|
...props
|
|
157
129
|
}) {
|
|
158
130
|
const parentLock = useScrollGestureLock();
|
|
159
|
-
const [activeGestures, setActiveGestures] =
|
|
160
|
-
const lock =
|
|
131
|
+
const [activeGestures, setActiveGestures] = React.useState(0);
|
|
132
|
+
const lock = React.useMemo(() => createScrollGestureLock(parentLock, (delta) => setActiveGestures((count) => count + delta)), [parentLock]);
|
|
161
133
|
return /* @__PURE__ */ jsx5(ScrollGestureLockContext.Provider, {
|
|
162
134
|
value: lock,
|
|
163
135
|
children: /* @__PURE__ */ jsx5(SurfaceScrollView, {
|
|
@@ -215,13 +187,13 @@ function ScreenInner({
|
|
|
215
187
|
}
|
|
216
188
|
var Screen2 = withZoraThemeScope(ScreenInner);
|
|
217
189
|
// src/features/layout/adapters/inbound/ZoraWebStyleSheet.tsx
|
|
218
|
-
import
|
|
190
|
+
import React2 from "react";
|
|
219
191
|
import { Platform, StyleSheet } from "react-native-web";
|
|
220
192
|
function ZoraWebStyleSheet2() {
|
|
221
193
|
const sheet = getReactNativeWebStyleSheet();
|
|
222
194
|
if (sheet === null)
|
|
223
195
|
return null;
|
|
224
|
-
return
|
|
196
|
+
return React2.createElement("style", {
|
|
225
197
|
dangerouslySetInnerHTML: { __html: sheet.textContent },
|
|
226
198
|
id: sheet.id
|
|
227
199
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
useZoraTheme2
|
|
7
7
|
} from "./Accordion-x1ze1wvk.js";
|
|
8
8
|
import {
|
|
9
9
|
Text2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
11
11
|
import {
|
|
12
12
|
View2,
|
|
13
13
|
Divider2
|
|
14
|
-
} from "./Accordion-
|
|
14
|
+
} from "./Accordion-2kv6p7by.js";
|
|
15
15
|
import {
|
|
16
16
|
SectionHeader2
|
|
17
|
-
} from "./Accordion-
|
|
17
|
+
} from "./Accordion-qz6ddnmv.js";
|
|
18
18
|
|
|
19
19
|
// src/features/list/adapters/inbound/FlatList.tsx
|
|
20
20
|
import React2 from "react";
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
Button2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-vbh3xqv6.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-2kv6p7by.js";
|
|
11
11
|
import {
|
|
12
12
|
GridView2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-snk6nggm.js";
|
|
14
14
|
import {
|
|
15
15
|
TimeGrid2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-gb3mfjmx.js";
|
|
17
17
|
import {
|
|
18
18
|
Text2
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
20
20
|
|
|
21
21
|
// src/features/calendar/adapters/inbound/Calendar.tsx
|
|
22
22
|
import React from "react";
|
|
23
|
+
import { useWindowDimensions, View as NativeView } from "react-native-web";
|
|
23
24
|
|
|
24
25
|
// src/features/calendar/application/createCalendarMonth.ts
|
|
25
26
|
function createCalendarMonth(month, weekStartsOn) {
|
|
@@ -72,6 +73,11 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
72
73
|
var GRID_COLUMNS = 7;
|
|
73
74
|
var GRID_ROWS = 6;
|
|
74
75
|
var MINUTES_PER_DAY = 24 * 60;
|
|
76
|
+
var TIME_AXIS_WIDTH = 56;
|
|
77
|
+
var TIME_GRID_HEADER_HEIGHT = 36;
|
|
78
|
+
var MINIMUM_DAY_WIDTH = 96;
|
|
79
|
+
var MINIMUM_TIME_GRID_HEIGHT = 360;
|
|
80
|
+
var MAXIMUM_TIME_GRID_HEIGHT = 720;
|
|
75
81
|
var Calendar2 = withZoraThemeScope(CalendarInner);
|
|
76
82
|
function CalendarInner(props) {
|
|
77
83
|
const {
|
|
@@ -290,26 +296,133 @@ function CalendarTimeView({
|
|
|
290
296
|
view,
|
|
291
297
|
weekStartsOn
|
|
292
298
|
}) {
|
|
293
|
-
const
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
variant: "caption",
|
|
309
|
-
children: formatDayLabel(parseCalendarDate(lane.id) ?? displayedDate, locale)
|
|
310
|
-
}),
|
|
299
|
+
const { height: windowHeight, width: windowWidth } = useWindowDimensions();
|
|
300
|
+
const [measuredWidth, setMeasuredWidth] = React.useState(0);
|
|
301
|
+
const dates = React.useMemo(() => view === "day" ? [displayedDate] : createWeek(displayedDate, weekStartsOn), [displayedDate, view, weekStartsOn]);
|
|
302
|
+
const width = measuredWidth || windowWidth || getBrowserViewportWidth();
|
|
303
|
+
const contentWidth = Math.max(width, TIME_AXIS_WIDTH + dates.length * MINIMUM_DAY_WIDTH);
|
|
304
|
+
const dayWidth = (contentWidth - TIME_AXIS_WIDTH) / dates.length;
|
|
305
|
+
const height = Math.max(MINIMUM_TIME_GRID_HEIGHT, Math.min(MAXIMUM_TIME_GRID_HEIGHT, windowHeight - 180));
|
|
306
|
+
const intervals = React.useMemo(() => createTimeGridIntervals(events, dates, timeZone), [dates, events, timeZone]);
|
|
307
|
+
const eventByIntervalId = React.useMemo(() => new Map(intervals.flatMap((interval) => {
|
|
308
|
+
const event = events.find((candidate) => interval.id.endsWith(`:${candidate.id}`));
|
|
309
|
+
return event ? [[interval.id, event]] : [];
|
|
310
|
+
})), [events, intervals]);
|
|
311
|
+
return /* @__PURE__ */ jsx(NativeView, {
|
|
312
|
+
onLayout: (event) => setMeasuredWidth(event.nativeEvent.layout.width),
|
|
313
|
+
style: { height, width: "100%" },
|
|
311
314
|
testID: withTestId(testID, view),
|
|
312
|
-
|
|
315
|
+
children: width > 0 ? /* @__PURE__ */ jsx(TimeGrid2, {
|
|
316
|
+
contentHeight: TIME_GRID_HEADER_HEIGHT + MINUTES_PER_DAY,
|
|
317
|
+
contentWidth,
|
|
318
|
+
height,
|
|
319
|
+
interactionPolicy,
|
|
320
|
+
intervals,
|
|
321
|
+
lanes: [
|
|
322
|
+
{ height: TIME_AXIS_WIDTH, id: "time-axis" },
|
|
323
|
+
...dates.map((date) => ({ height: dayWidth, id: formatCalendarDate2(date) }))
|
|
324
|
+
],
|
|
325
|
+
onIntervalPress: (interval) => {
|
|
326
|
+
const event = eventByIntervalId.get(interval.id);
|
|
327
|
+
if (event)
|
|
328
|
+
activateEvent(event.id);
|
|
329
|
+
},
|
|
330
|
+
orientation: "vertical",
|
|
331
|
+
overscanPixels: 0,
|
|
332
|
+
renderInterval: (interval) => /* @__PURE__ */ jsx(View2, {
|
|
333
|
+
bg: "subtle",
|
|
334
|
+
borderColor: "primary",
|
|
335
|
+
borderWidth: 1,
|
|
336
|
+
gap: "xxs",
|
|
337
|
+
p: "xs",
|
|
338
|
+
radius: "s",
|
|
339
|
+
children: /* @__PURE__ */ jsx(Text2, {
|
|
340
|
+
numberOfLines: 1,
|
|
341
|
+
variant: "caption",
|
|
342
|
+
weight: "semiBold",
|
|
343
|
+
children: eventByIntervalId.get(interval.id)?.title
|
|
344
|
+
})
|
|
345
|
+
}),
|
|
346
|
+
renderWorldLayer: (layer) => /* @__PURE__ */ jsx(CalendarTimeGridGeometry, {
|
|
347
|
+
dates,
|
|
348
|
+
dayWidth,
|
|
349
|
+
layer,
|
|
350
|
+
locale
|
|
351
|
+
}),
|
|
352
|
+
testID: withTestId(testID, `${view}-grid`),
|
|
353
|
+
viewportControls: "hidden",
|
|
354
|
+
width
|
|
355
|
+
}) : null
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
function CalendarTimeGridGeometry({
|
|
359
|
+
dates,
|
|
360
|
+
dayWidth,
|
|
361
|
+
layer,
|
|
362
|
+
locale
|
|
363
|
+
}) {
|
|
364
|
+
const hourFormatter = new Intl.DateTimeFormat(locale, { hour: "numeric" });
|
|
365
|
+
return /* @__PURE__ */ jsxs(NativeView, {
|
|
366
|
+
pointerEvents: "none",
|
|
367
|
+
style: { height: layer.height, width: layer.width },
|
|
368
|
+
children: [
|
|
369
|
+
dates.map((date, index) => /* @__PURE__ */ jsxs(React.Fragment, {
|
|
370
|
+
children: [
|
|
371
|
+
/* @__PURE__ */ jsx(NativeView, {
|
|
372
|
+
style: {
|
|
373
|
+
borderLeftWidth: 1,
|
|
374
|
+
height: layer.height - layer.origin.y,
|
|
375
|
+
left: layer.origin.x + (TIME_AXIS_WIDTH + index * dayWidth) * layer.pixelsPerUnitX,
|
|
376
|
+
position: "absolute",
|
|
377
|
+
top: layer.origin.y,
|
|
378
|
+
width: dayWidth * layer.pixelsPerUnitX
|
|
379
|
+
},
|
|
380
|
+
children: /* @__PURE__ */ jsx(Text2, {
|
|
381
|
+
align: "center",
|
|
382
|
+
variant: "caption",
|
|
383
|
+
weight: "semiBold",
|
|
384
|
+
children: formatDayLabel(date, locale)
|
|
385
|
+
})
|
|
386
|
+
}),
|
|
387
|
+
index === dates.length - 1 ? /* @__PURE__ */ jsx(NativeView, {
|
|
388
|
+
style: {
|
|
389
|
+
borderLeftWidth: 1,
|
|
390
|
+
height: layer.height - layer.origin.y,
|
|
391
|
+
left: layer.origin.x + (TIME_AXIS_WIDTH + (index + 1) * dayWidth) * layer.pixelsPerUnitX,
|
|
392
|
+
position: "absolute",
|
|
393
|
+
top: layer.origin.y
|
|
394
|
+
}
|
|
395
|
+
}) : null
|
|
396
|
+
]
|
|
397
|
+
}, formatCalendarDate2(date))),
|
|
398
|
+
Array.from({ length: 25 }, (_, hour) => {
|
|
399
|
+
const top = layer.origin.y + (TIME_GRID_HEADER_HEIGHT + hour * 60) * layer.pixelsPerUnitY;
|
|
400
|
+
return /* @__PURE__ */ jsxs(React.Fragment, {
|
|
401
|
+
children: [
|
|
402
|
+
/* @__PURE__ */ jsx(NativeView, {
|
|
403
|
+
style: {
|
|
404
|
+
borderTopWidth: 1,
|
|
405
|
+
left: layer.origin.x + TIME_AXIS_WIDTH * layer.pixelsPerUnitX,
|
|
406
|
+
position: "absolute",
|
|
407
|
+
top,
|
|
408
|
+
width: layer.width - TIME_AXIS_WIDTH * layer.pixelsPerUnitX
|
|
409
|
+
}
|
|
410
|
+
}),
|
|
411
|
+
hour < 24 ? /* @__PURE__ */ jsx(Text2, {
|
|
412
|
+
align: "right",
|
|
413
|
+
style: {
|
|
414
|
+
left: layer.origin.x,
|
|
415
|
+
position: "absolute",
|
|
416
|
+
top,
|
|
417
|
+
width: TIME_AXIS_WIDTH * layer.pixelsPerUnitX - 6
|
|
418
|
+
},
|
|
419
|
+
variant: "caption",
|
|
420
|
+
children: hourFormatter.format(new Date(2023, 0, 1, hour))
|
|
421
|
+
}) : null
|
|
422
|
+
]
|
|
423
|
+
}, hour);
|
|
424
|
+
})
|
|
425
|
+
]
|
|
313
426
|
});
|
|
314
427
|
}
|
|
315
428
|
function createWeekdayLabels(locale, weekStartsOn) {
|
|
@@ -344,9 +457,9 @@ function createTimeGridIntervals(events, dates, timeZone) {
|
|
|
344
457
|
return [
|
|
345
458
|
{
|
|
346
459
|
extent: Math.max(1, endMinute - startMinute),
|
|
347
|
-
id: event.id
|
|
460
|
+
id: `${dateId}:${event.id}`,
|
|
348
461
|
laneId: dateId,
|
|
349
|
-
start: startMinute
|
|
462
|
+
start: TIME_GRID_HEADER_HEIGHT + startMinute
|
|
350
463
|
}
|
|
351
464
|
];
|
|
352
465
|
}));
|
|
@@ -420,6 +533,10 @@ function formatViewLabel(value, locale, view) {
|
|
|
420
533
|
function formatDayLabel(value, locale) {
|
|
421
534
|
return new Intl.DateTimeFormat(locale, { day: "numeric", weekday: "short" }).format(value);
|
|
422
535
|
}
|
|
536
|
+
function getBrowserViewportWidth() {
|
|
537
|
+
const browserWindow = Reflect.get(globalThis, "window");
|
|
538
|
+
return typeof browserWindow === "object" && "innerWidth" in browserWindow && typeof browserWindow.innerWidth === "number" ? Math.max(0, browserWindow.innerWidth) : 0;
|
|
539
|
+
}
|
|
423
540
|
function withTestId(testID, suffix) {
|
|
424
541
|
return testID === undefined ? undefined : `${testID}-${suffix}`;
|
|
425
542
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-hbwyj12m.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-2kv6p7by.js";
|
|
11
11
|
import {
|
|
12
12
|
useZoraTheme2
|
|
13
13
|
} from "./Accordion-x1ze1wvk.js";
|
|
14
14
|
import {
|
|
15
15
|
Text2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
17
17
|
|
|
18
18
|
// src/features/avatar/adapters/inbound/Avatar.tsx
|
|
19
19
|
import { Image } from "react-native-web";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
View2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-2kv6p7by.js";
|
|
8
8
|
import {
|
|
9
9
|
useZoraTheme2
|
|
10
10
|
} from "./Accordion-x1ze1wvk.js";
|
|
11
11
|
import {
|
|
12
12
|
Button2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-vbh3xqv6.js";
|
|
14
14
|
import {
|
|
15
15
|
Text2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
17
17
|
|
|
18
18
|
// src/features/form/adapters/inbound/FormActions.tsx
|
|
19
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-hbwyj12m.js";
|
|
8
8
|
import {
|
|
9
9
|
View2,
|
|
10
10
|
Divider2
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-2kv6p7by.js";
|
|
12
12
|
import {
|
|
13
13
|
Heading2,
|
|
14
14
|
Text2
|
|
15
|
-
} from "./Accordion-
|
|
15
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
16
16
|
|
|
17
17
|
// src/features/accordion/adapters/inbound/Accordion.tsx
|
|
18
18
|
import { Accordion as SurfaceAccordion } from "@ankhorage/surface/web";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
View2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-2kv6p7by.js";
|
|
8
8
|
import {
|
|
9
9
|
useZoraTheme2
|
|
10
10
|
} from "./Accordion-x1ze1wvk.js";
|
|
11
11
|
import {
|
|
12
12
|
Text2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
14
14
|
|
|
15
15
|
// src/types/progress.ts
|
|
16
16
|
function resolveProgressRole(theme, color) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
TileGrid2
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-snk6nggm.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-pagdkp07.js";
|
|
8
8
|
import {
|
|
9
9
|
Icon2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-hbwyj12m.js";
|
|
11
11
|
import {
|
|
12
12
|
useZoraTheme2
|
|
13
13
|
} from "./Accordion-x1ze1wvk.js";
|
|
14
14
|
import {
|
|
15
15
|
Image2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-2b3sd76b.js";
|
|
17
17
|
import {
|
|
18
18
|
Text2
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
20
20
|
import {
|
|
21
21
|
applySelectionIntent
|
|
22
22
|
} from "./Accordion-n4et7etk.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
View2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-2kv6p7by.js";
|
|
8
8
|
import {
|
|
9
9
|
Text2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
11
11
|
|
|
12
12
|
// src/features/form/field/adapters/inbound/Field.tsx
|
|
13
13
|
import { Field as SurfaceField } from "@ankhorage/surface/web";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pagdkp07.js";
|
|
5
5
|
import {
|
|
6
6
|
View2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-2kv6p7by.js";
|
|
8
8
|
import {
|
|
9
9
|
Text2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-5x4cv0kv.js";
|
|
11
11
|
|
|
12
12
|
// src/features/form/checkbox/adapters/inbound/Checkbox.tsx
|
|
13
13
|
import { Checkbox as SurfaceCheckbox } from "@ankhorage/surface/web";
|